mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
replication of GRANT role statement
This commit is contained in:
@@ -3908,14 +3908,8 @@ end_with_restore_list:
|
||||
{
|
||||
/* TODO access check */
|
||||
|
||||
if (thd->security_ctx->user) // If not replication
|
||||
{
|
||||
if (!(res= mysql_grant_role(thd, lex->users_list,
|
||||
lex->sql_command == SQLCOM_GRANT_ROLE ? 0 : 1
|
||||
)))
|
||||
my_ok(thd);
|
||||
}
|
||||
else
|
||||
if (!(res= mysql_grant_role(thd, lex->users_list,
|
||||
lex->sql_command != SQLCOM_GRANT_ROLE)))
|
||||
my_ok(thd);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user