perf: user login acl remove warning notify_and_warn action

pull/15188/head
feng 2025-04-10 15:54:27 +08:00 committed by ZhaoJiSen
parent 1254d28463
commit 53c5bab203
1 changed files with 6 additions and 1 deletions

View File

@ -18,7 +18,12 @@ class LoginACLSerializer(BaseUserACLSerializer, BulkOrgResourceModelSerializer):
class Meta(BaseUserACLSerializer.Meta):
model = LoginACL
fields = BaseUserACLSerializer.Meta.fields + ['rules', ]
action_choices_exclude = [ActionChoices.face_online, ActionChoices.face_verify]
action_choices_exclude = [
ActionChoices.warning,
ActionChoices.notify_and_warn,
ActionChoices.face_online,
ActionChoices.face_verify
]
def get_rules_serializer(self):
return RuleSerializer()