snapshot of https://github.com/casbin/casbin.git (master, 2026-09-15; blobs > 131072B omitted)
This commit is contained in:
14
examples/priority_model_explicit_customized.conf
Normal file
14
examples/priority_model_explicit_customized.conf
Normal file
@@ -0,0 +1,14 @@
|
||||
[request_definition]
|
||||
r = subject, obj, act
|
||||
|
||||
[policy_definition]
|
||||
p = customized_priority, obj, act, eft, subject
|
||||
|
||||
[role_definition]
|
||||
g = _, _
|
||||
|
||||
[policy_effect]
|
||||
e = priority(p.eft) || deny
|
||||
|
||||
[matchers]
|
||||
m = g(r.subject, p.subject) && r.obj == p.obj && r.act == p.act
|
||||
Reference in New Issue
Block a user