mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
fixed case when frivileges check switched off (BUG#4631)
mysql-test/r/view.result: test made more environment independed mysql-test/t/view.test: test made more environment independed sql/sql_acl.cc: fixed case when frivileges check switched off
This commit is contained in:
@ -3838,6 +3838,11 @@ void fill_effective_table_privileges(THD *thd, GRANT_INFO *grant,
|
||||
{
|
||||
/* global privileges */
|
||||
grant->privilege= thd->master_access;
|
||||
|
||||
/* if privileges ignored (--skip-grant-tables) above is enough */
|
||||
if (!grant_option)
|
||||
return;
|
||||
|
||||
/* db privileges */
|
||||
grant->privilege|= acl_get(thd->host, thd->ip, thd->priv_user, db, 0);
|
||||
/* table privileges */
|
||||
|
Reference in New Issue
Block a user