Commit 7faba82b authored by Vicențiu Ciorbaru's avatar Vicențiu Ciorbaru Committed by Sergei Golubchik

Fixed wrong IS_ROLE check.

parent 0624020a
...@@ -2237,7 +2237,7 @@ my_bool get_role_access(ACL_USER *role, ulong *access) ...@@ -2237,7 +2237,7 @@ my_bool get_role_access(ACL_USER *role, ulong *access)
{ {
neighbour= *(dynamic_element(&current->role_grants, i, ACL_USER**)); neighbour= *(dynamic_element(&current->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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment