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
When using policies with explicit priorities that are integers, the policies are sorted as strings instead of as numbers. This will put a policy with priority 10 in front of a policy with priority 2.
Example
model.conf
[request_definition]
r = sub, obj, act
[policy_definition]
p = priority, sub, obj, act, eft
[role_definition]
g = _, _
[policy_effect]
e = priority(p.eft) || deny
[matchers]
m = g(r.sub, p.sub) && r.obj == p.obj && r.act == p.act
When using policies with explicit priorities that are integers, the policies are sorted as strings instead of as numbers. This will put a policy with priority
10
in front of a policy with priority2
.Example
model.conf
policy.csv
Example Python
The result of calling
enforce()
should beFalse
.The text was updated successfully, but these errors were encountered: