perf: 优化 manager 和 acl 的 组织

This commit is contained in:
ibuler
2023-06-12 16:00:14 +08:00
parent 24272d3162
commit 5c2b54ad3b
5 changed files with 20 additions and 4 deletions

View File

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