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