forked from rDrama/rDrama
1
0
Fork 0

remove unnecessary syntax

master
Aevann 2023-09-14 19:15:12 +03:00
parent db7501629c
commit 61484f7fe1
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ def get_logged_in_user():
else:
session.pop("lo_user")
if request.method.lower() != "get" and get_setting('read_only_mode') and not (v and v.admin_level >= PERMS['BYPASS_SITE_READ_ONLY_MODE']):
if request.method != "GET" and get_setting('read_only_mode') and not (v and v.admin_level >= PERMS['BYPASS_SITE_READ_ONLY_MODE']):
abort(403, "Site is in read-only mode right now. It will be back shortly!")
if get_setting('offline_mode') and not (v and v.admin_level >= PERMS['SITE_OFFLINE_MODE']):