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

Hi all!
Please help me how can i delete policy
by v0 and v2 fields and skip v1
removeFilteredPolicy(0, 'my v0 value', 'my v2 value')

Y

my idea is
create role - add policies - add user to role

Y

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?