We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 068cd64 commit be3596fCopy full SHA for be3596f
2 files changed
README.md
@@ -64,7 +64,7 @@ g = _, _
64
e = some(where (p.eft == allow))
65
66
[matchers]
67
-m = g(r.sub, p.sub) && r.obj == p.obj && r.act == p.act
+m = (p.sub == "*" || g(r.sub, p.sub)) && r.obj == p.obj && (p.act == "*" || r.act == p.act)
68
```
69
Example Policy
70
This example file can be found in `tests/casbin_files`
tests/casbin_files/rbac_model.conf
@@ -11,4 +11,4 @@ g = _, _
11
12
13
14
0 commit comments