forked from rDrama/rDrama
1
0
Fork 0

make tor users with more than 100 truescore able to upload stuff (RDRAMA ONLY)

master
Aevann 2023-09-17 21:49:44 +03:00
parent ef2bcf7200
commit ddbfb715e0
2 changed files with 2 additions and 2 deletions

View File

@ -42,8 +42,6 @@ def before_request():
else:
g.browser = 'chromium'
g.is_tor = request.headers.get("cf-ipcountry") == "T1"
request.path = request.path.rstrip('/')
if not request.path: request.path = '/'
request.full_path = request.full_path.rstrip('?').rstrip('/')

View File

@ -110,6 +110,8 @@ def get_logged_in_user():
g.is_api_or_xhr = bool((v and v.client) or request.headers.get("xhr"))
g.is_tor = (request.headers.get("cf-ipcountry") == "T1" and not (SITE_NAME == 'rDrama' and v and v.truescore >= 100))
return v
def auth_desired(f):