fix and optimize casbin (#1121)

* - 删除rabac_model.conf, 改为字符串代码, 方便部署
- 删除casbin相关配置文件

* fix: delete api时只传id导致casbin_rules表清空bug
This commit is contained in:
SliverHorn
2022-06-10 09:57:09 +08:00
committed by GitHub
parent 7d82785ade
commit 582c39611d
8 changed files with 35 additions and 39 deletions
-14
View File
@@ -1,14 +0,0 @@
[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 = r.sub == p.sub && keyMatch2(r.obj,p.obj) && r.act == p.act