mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Fixed wrong IS_ROLE check.
This commit is contained in:
committed by
Sergei Golubchik
parent
0624020a76
commit
7faba82bab
@ -2237,7 +2237,7 @@ my_bool get_role_access(ACL_USER *role, ulong *access)
|
|||||||
{
|
{
|
||||||
neighbour= *(dynamic_element(¤t->role_grants, i, ACL_USER**));
|
neighbour= *(dynamic_element(¤t->role_grants, i, ACL_USER**));
|
||||||
/* check if the neighbour is a role; pass if not*/
|
/* check if the neighbour is a role; pass if not*/
|
||||||
if (!(neighbour->flags & ~IS_ROLE))
|
if (!(neighbour->flags & IS_ROLE))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* check if it forms a cycle */
|
/* check if it forms a cycle */
|
||||||
|
Reference in New Issue
Block a user