forked from rDrama/rDrama
1
0
Fork 0

minor change

master
Aevann 2023-02-10 07:51:17 +02:00
parent 68674f5195
commit 28dddf4a8b
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ def get_logged_in_user():
v.last_active = timestamp
g.db.add(v)
if SITE == 'rdrama.net' and request.headers.get("Cf-Ipcountry") == 'EG' and not (v and v.username.startswith('Aev')):
if SITE == 'rdrama.net' and request.headers.get("Cf-Ipcountry") == 'EG' and not v:
abort(404)
g.is_api_or_xhr = bool((v and v.client) or request.headers.get("xhr"))