Join GitHub today
Browse fails with users who have only column privileges for some columns #11922
Users who only have select privileges on some of the columns in a table are unable to browse.
Is this something we can fix?
SQL to make reproducing easier:
GRANT USAGE ON *.* TO 'col'@'%'; GRANT SELECT (name, id), INSERT (name, id), UPDATE (name, id), REFERENCES (name, id) ON `test`.`col` TO 'col'@'%';
and to create the table:
CREATE TABLE `col` ( `id` int(11) NOT NULL, `name` varchar(255) NOT NULL, `email` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
referenced this issue
Feb 6, 2016
Given that only a very small fraction of users would have the problem, I am not sure checking column permission prior to generating the browse query is worth performance burden it adds to all the other users. Moreover, using a bookmark having the same name as the table with the appropriate browse query provides a workaround for this.
For the reference default browse query is generated at https://github.com/phpmyadmin/phpmyadmin/blob/RELEASE_4_5_4/libraries/sql.lib.php#L868-L926