Skip to content

Commit 118db9d

Browse files
authored
fix: authentication errors (#3012)
1 parent 0df7c72 commit 118db9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/common/auth/authentication.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def has_permissions(*permission, compare=CompareConstants.OR):
8888
def inner(func):
8989
def run(view, request, **kwargs):
9090
exit_list = list(
91-
map(lambda p: exist(request.auth.current_role_list, request.auth.permission_list, p, request, **kwargs),
91+
map(lambda p: exist(request.auth.role_list, request.auth.permission_list, p, request, **kwargs),
9292
permission))
9393
# 判断是否有权限
9494
if any(exit_list) if compare == CompareConstants.OR else all(exit_list):

0 commit comments

Comments
 (0)