Casbin Forum runs on Casnode, the open-source Discourse-style forum. Try the Casnode demo →
Casbin Forum

Model:

r = sub, obj, act

[policy_definition]
p = sub, obj, act

[role_definition]
g = _, _

[policy_effect]
e = some(where (p.eft == allow))

[matchers]
m = g(r.sub, p.sub) && r.obj == p.obj && r.act == p.act```

Policy:
```# Policy Rules (policies)
p, users, dashboard, read
p, users, reports, view

# Role Assignments (grouping policies)
g, ***@mydomain.com, users
g, jrocket@example.com, users```

If I’m missing something please let me know. But I tested my RBAC config with the editor and it works as anticipated but in NodeJS I am never able to get the user authorized
1views
1 minread
1 / 1
Dec 2023