fix: 修改 ACL ActionChoices review, accept, reject 引用

This commit is contained in:
Bai
2022-12-04 12:08:44 +08:00
parent 2b5bd558f3
commit a69b762f13
3 changed files with 7 additions and 6 deletions

View File

@@ -36,7 +36,7 @@ class LoginACL(BaseACL):
return
for acl in acl_qs:
if acl.is_action(LoginACL.ActionChoices.confirm) and \
if acl.is_action(LoginACL.ActionChoices.review) and \
not acl.reviewers.exists():
continue
ip_group = acl.rules.get('ip_group')