- 开始添加casbin做角色,权限管理

This commit is contained in:
gazebo
2019-08-06 11:26:08 +08:00
parent 407844aa81
commit 438879ac4f
11 changed files with 427 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
[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