snapshot of https://github.com/casbin/casbin.git (master, 2026-09-15; blobs > 131072B omitted)
This commit is contained in:
16
examples/priority_model_enforce_context.conf
Normal file
16
examples/priority_model_enforce_context.conf
Normal file
@@ -0,0 +1,16 @@
|
||||
[request_definition]
|
||||
r = sub, obj, act
|
||||
r2 = sub, obj
|
||||
|
||||
[policy_definition]
|
||||
p = 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
|
||||
m2 = g(r2.sub, p.sub)
|
||||
Reference in New Issue
Block a user