From 803c076f0d6bd3dc7139da423dba3b53ba58d22a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=80=9D=E5=B7=9D?= Date: Tue, 8 Nov 2022 14:13:18 +0800 Subject: [PATCH] changes --- Utils/AccessControl/model.conf | 15 --------------- requirements.txt | 1 - 2 files changed, 16 deletions(-) delete mode 100644 Utils/AccessControl/model.conf diff --git a/Utils/AccessControl/model.conf b/Utils/AccessControl/model.conf deleted file mode 100644 index b0665ab..0000000 --- a/Utils/AccessControl/model.conf +++ /dev/null @@ -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 == "管理员" \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index ab7ced0..9216f91 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,6 +6,5 @@ uvicorn Werkzeug~=2.2.2 PyJWT~=2.5.0 requests~=2.28.1 -casbin~=1.17.1 cryptography pycryptodome \ No newline at end of file