1
0
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:
Vicențiu Ciorbaru
2013-10-17 20:50:42 -07:00
committed by Sergei Golubchik
parent 0624020a76
commit 7faba82bab

View File

@ -2237,7 +2237,7 @@ my_bool get_role_access(ACL_USER *role, ulong *access)
{
neighbour= *(dynamic_element(&current->role_grants, i, ACL_USER**));
/* check if the neighbour is a role; pass if not*/
if (!(neighbour->flags & ~IS_ROLE))
if (!(neighbour->flags & IS_ROLE))
continue;
/* check if it forms a cycle */