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 has been 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.
This can be solved using deny feature, currently, this library is not supporting it. "!create" doesn't mean deny create in current implementation but it just means that that role is not granting (but also not denying) "create" action and the other role is granting so the final result is granted.
I hope this clarifies.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Two grants are loaded from database.
and
With following test code.
I expect
create
to be denied as it being explicitly mentioned in action ofrole2
. But the desired result is the permission tocreate
is granted. Thus explicit denial is not taken into consideration.The code behind this behavior is in
filter
ofgetUnionAttrsOfRolesSync
where role2 is being filtered out in favor of positive action.role-acl/src/utils/common.ts
Lines 366 to 377 in 321d013
The text was updated successfully, but these errors were encountered: