WL#6236: Allow SHOW MASTER LOGS and SHOW BINARY LOGS with REPLICATION CLIENT

Merge from 5.1 into 5.5.
This commit is contained in:
Nuno Carvalho 2012-04-18 10:12:19 +01:00
commit 5e126b505a
3 changed files with 24 additions and 1 deletions

View file

@ -2677,7 +2677,7 @@ end_with_restore_list:
goto error;
#else
{
if (check_global_access(thd, SUPER_ACL))
if (check_global_access(thd, SUPER_ACL | REPL_CLIENT_ACL))
goto error;
res = show_binlogs(thd);
break;