Skip to content

Commit 0e049d7

Browse files
committed
fix: 修复casbin模型匹配器
1 parent eb431c4 commit 0e049d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fastapi_user_auth/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "0.6.1a6"
1+
__version__ = "0.6.1a7"
22
__url__ = "https://github.com/amisadmin/fastapi_user_auth"
33

44
import gettext

fastapi_user_auth/auth/model.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ g2 = _, _
1313
e = subjectPriority(p.eft) || deny
1414

1515
[matchers]
16-
m = r.sub=="u:root" || (g(r.sub, p.sub) && g2(r.obj, p.obj) && keyMatch(r.act,p.act)) && r.group==p.group
16+
m = (r.sub=="u:root" && p.eft=="allow") || ((g(r.sub, p.sub) && g2(r.obj, p.obj) && keyMatch(r.act,p.act)) && r.group==p.group)

0 commit comments

Comments
 (0)