We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0df7c72 commit 118db9dCopy full SHA for 118db9d
apps/common/auth/authentication.py
@@ -88,7 +88,7 @@ def has_permissions(*permission, compare=CompareConstants.OR):
88
def inner(func):
89
def run(view, request, **kwargs):
90
exit_list = list(
91
- map(lambda p: exist(request.auth.current_role_list, request.auth.permission_list, p, request, **kwargs),
+ map(lambda p: exist(request.auth.role_list, request.auth.permission_list, p, request, **kwargs),
92
permission))
93
# 判断是否有权限
94
if any(exit_list) if compare == CompareConstants.OR else all(exit_list):
0 commit comments