Skip to content

Commit 5aacc16

Browse files
authored
Update the Casbin model matcher rules (#197)
1 parent 09b42c3 commit 5aacc16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/app/core/rbac_model.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ g = _, _
1111
e = some(where (p.eft == allow))
1212

1313
[matchers]
14-
m = g(r.sub, p.sub) && r.obj == p.obj && r.act == p.act
14+
m = g(r.sub, p.sub) && (keyMatch(r.obj, p.obj) || keyMatch3(r.obj, p.obj)) && (r.act == p.act || p.act == "*")

0 commit comments

Comments
 (0)