You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 12, 2020. It is now read-only.
I expect create to be denied as it being explicitly mentioned in action of role2. But the desired result is the permission to create is granted. Thus explicit denial is not taken into consideration.
The code behind this behavior is in filter of getUnionAttrsOfRolesSync where role2 is being filtered out in favor of positive action.
Two grants are loaded from database.
and
With following test code.
I expect
createto be denied as it being explicitly mentioned in action ofrole2. But the desired result is the permission tocreateis granted. Thus explicit denial is not taken into consideration.The code behind this behavior is in
filterofgetUnionAttrsOfRolesSyncwhere role2 is being filtered out in favor of positive action.role-acl/src/utils/common.ts
Lines 366 to 377 in 321d013