disable under_attack disabling

Aevann 2024-04-27 00:03:32 +03:00
parent 0a1e78ea3c
commit caf0f2f54f
1 changed files with 4 additions and 4 deletions

View File

@ -65,10 +65,10 @@ def calc_users():
if not get_setting('under_attack'):
set_setting('under_attack', True)
set_security_level('under_attack')
else:
if get_setting('under_attack'):
set_setting('under_attack', False)
set_security_level('high')
# else:
# if get_setting('under_attack'):
# set_setting('under_attack', False)
# set_security_level('high')
return ''
def get_logged_in_user():