limit devrama access to meself

pull/83/head
Aevann 2022-12-27 06:17:16 +02:00
parent fc95e3741f
commit 937443560c
1 changed files with 3 additions and 0 deletions

View File

@ -41,6 +41,9 @@ def get_logged_in_user():
else:
session.pop("lo_user")
if SITE == 'devrama.net' and not (v and v.username == 'Aevann'):
abort(403, "Only Aevann can access devrama for now!")
if request.method.lower() != "get" and get_setting('read_only_mode') and not (v and v.admin_level >= PERMS['SITE_BYPASS_READ_ONLY_MODE']):
abort(403)