1
0
mirror of https://github.com/jumpserver/jumpserver.git synced 2025-05-12 18:15:29 +00:00

perf: user login acl remove warning notify_and_warn action

This commit is contained in:
feng 2025-04-10 15:54:27 +08:00 committed by ZhaoJiSen
parent 1254d28463
commit 53c5bab203

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()