This commit is contained in:
王思川 2022-11-08 14:13:18 +08:00
parent c8b453dabf
commit 803c076f0d
2 changed files with 0 additions and 16 deletions

View File

@ -1,15 +0,0 @@
[request_definition]
r = sub, obj, act
[policy_definition]
p = sub, obj, act
[role_definition]
g = _, _
g2 = _, _
[policy_effect]
e = some(where (p.eft == allow))
[matchers]
m = g(r.sub, p.sub) && g2(r.obj, p.obj) && r.act == p.act || r.sub == "管理员"

View File

@ -6,6 +6,5 @@ uvicorn
Werkzeug~=2.2.2
PyJWT~=2.5.0
requests~=2.28.1
casbin~=1.17.1
cryptography
pycryptodome