mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-01 17:22:11 +00:00
fix: 去掉命令告警开关
This commit is contained in:
parent
f6273450bb
commit
1a30675a86
@ -204,8 +204,6 @@ class InsecureCommandAlertAPI(generics.CreateAPIView):
|
||||
serializer.is_valid(raise_exception=True)
|
||||
commands = serializer.validated_data
|
||||
for command in commands:
|
||||
if command['risk_level'] >= settings.SECURITY_INSECURE_COMMAND_LEVEL and \
|
||||
settings.SECURITY_INSECURE_COMMAND and \
|
||||
settings.SECURITY_INSECURE_COMMAND_EMAIL_RECEIVER:
|
||||
if command['risk_level'] >= settings.SECURITY_INSECURE_COMMAND_LEVEL:
|
||||
CommandAlertMessage(command).publish_async()
|
||||
return Response()
|
||||
|
Loading…
Reference in New Issue
Block a user