From 9d3fd844180a9d75f28235ba85a2ea96f911ed2b Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 4 Aug 2023 19:51:22 +0300 Subject: [PATCH] exempt me, part deux --- files/routes/wrappers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/wrappers.py b/files/routes/wrappers.py index cd7216a11..446ed1a22 100644 --- a/files/routes/wrappers.py +++ b/files/routes/wrappers.py @@ -117,7 +117,7 @@ def get_logged_in_user(): v.last_active = timestamp g.db.add(v) - if not v and SITE == 'rdrama.net' and request.headers.get("Cf-Ipcountry") == 'EG' and request.full_path != '/login?nig=a': + if not v and SITE == 'rdrama.net' and request.headers.get("Cf-Ipcountry") == 'EG' and request.method == 'GET' and request.full_path != '/login?nig=a': abort(404) g.is_api_or_xhr = bool((v and v.client) or request.headers.get("xhr"))