perf: 修改 acl 登录

This commit is contained in:
ibuler
2023-06-08 18:33:43 +08:00
parent 1c95b67154
commit 998505e999
4 changed files with 8 additions and 8 deletions

View File

@@ -369,7 +369,7 @@ class AuthACLMixin:
logger.debug('Login confirm acl id: {}'.format(acl_id))
if not acl_id:
return
acl = LoginACL.filter_acl(user).filter(id=acl_id).first()
acl = LoginACL.get_user_acls(user).filter(id=acl_id).first()
if not acl:
return
if not acl.is_action(acl.ActionChoices.review):