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

hi all!
I have default config
`[request_definition]
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`

i have a users and roles
p,admin,resource,read
g,bb260dcb-af5c-48af-9b08-52d88fc09fa8,admin

and all works fine
but i want to create role for example admin2 and add permissions to this role
Help me please how to create empty role and then assign it to user?

1views
1 minread
1 / 2
Apr 2023