snapshot of https://github.com/casbin/casbin.git (master, 2026-09-15; blobs > 131072B omitted)
This commit is contained in:
17
examples/rbac_with_multiple_policy_model.conf
Normal file
17
examples/rbac_with_multiple_policy_model.conf
Normal file
@@ -0,0 +1,17 @@
|
||||
[request_definition]
|
||||
r = user, thing, action
|
||||
|
||||
[policy_definition]
|
||||
p = role, thing, action
|
||||
p2 = role, action
|
||||
|
||||
[policy_effect]
|
||||
e = some(where (p.eft == allow))
|
||||
|
||||
[matchers]
|
||||
m = g(r.user, p.role) && r.thing == p.thing && r.action == p.action
|
||||
m2 = g(r.user, p2.role) && r.action == p.action
|
||||
|
||||
[role_definition]
|
||||
g = _,_
|
||||
g2 = _,_
|
||||
Reference in New Issue
Block a user