mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-13732 User with SELECT privilege can ALTER sequence
Bug in privilege checking of sequences. Test case added.
This commit is contained in:
@ -849,7 +849,7 @@ bool Sql_cmd_alter_sequence::execute(THD *thd)
|
||||
0, 0))
|
||||
DBUG_RETURN(TRUE); /* purecov: inspected */
|
||||
|
||||
if (check_grant(thd, ALTER_ACL, first_table, FALSE, UINT_MAX, FALSE))
|
||||
if (check_grant(thd, ALTER_ACL, first_table, FALSE, 1, FALSE))
|
||||
DBUG_RETURN(TRUE); /* purecov: inspected */
|
||||
|
||||
if (lex->check_exists)
|
||||
|
Reference in New Issue
Block a user