隐藏phpmyadmin编辑,复制和插入选项 [英] Hide phpmyadmin edit, copy and insert options

查看:87
本文介绍了隐藏phpmyadmin编辑,复制和插入选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近在Linux服务器上安装了PHPMyAdmin 4.0.10.我正在使用php 5.3,并正在连接到MySQL 5.0服务器.我创建了一个受限的MySQL用户,仅具有 select delete 特权.但是,当我以该受限用户身份登录PHPMyAdmin时,我注意到整个界面上仍然存在用于编辑",复制",插入"等的按钮.单击这些按钮会导致错误(显然,因为用户实际上没有执行这些操作的权限.

I recently installed PHPMyAdmin 4.0.10 on a Linux server. I am using php 5.3 and am connecting to a MySQL 5.0 server. I created a limited MySQL user with only select and delete privileges. However, when I log into PHPMyAdmin with this limited user, I noticed that there are still buttons all over the interface for "edit", "copy", "insert", etc. Clicking on these buttons results in an error (obviously, since the user doesn't actually have permission to perform the actions).

我的问题是:有没有一种方法可以隐藏这些按钮?".我的印象是,PHPMyAdmin会智能地隐藏当前用户没有权限使用的操作.我误会了吗?

My question is: "Is there a way to hide these buttons from view?". I was under the impression that PHPMyAdmin would intelligently hide operations that the current user did not have permission to use. Was I mistaken?

推荐答案

我认为,目前最适合您的解决方案是

I think the best solution for you right now is the new feature of user groups. Using a usergroup will allow you to hide the tabs across the top. Unfortunately, in some display views you'll still see these links, for instance when displaying a table's structure, you'll still see "Insert" displayed. This is unfortunate, and currently the expected behavior; fixing it probably should be a feature request.

简而言之,不,目前无法隐藏您所描述的每个链接.在许多情况下,您是对的,正确的按钮是隐藏的,但是在这种情况下,我怀疑有人希望用户能够删除但不能插入数据,因此以前可能从未进行过测试.

So in short, no, at the moment there's no way to hide every link as you described. In many cases you're right, the proper buttons are hidden, but in this case I doubt anyone expected a user to be able to delete but not insert data, so this has probably never been tested before.

这篇关于隐藏phpmyadmin编辑,复制和插入选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆