From e2a7881095be31f207bf51329d9aab118ebfa1d1 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 14 Dec 2021 00:14:51 +0200 Subject: [PATCH 1/3] fdsfds --- files/helpers/wrappers.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/files/helpers/wrappers.py b/files/helpers/wrappers.py index ad1e4db5f..f8b397f05 100644 --- a/files/helpers/wrappers.py +++ b/files/helpers/wrappers.py @@ -47,9 +47,9 @@ def auth_desired(f): v = get_logged_in_user() - if request.host == 'old.rdrama.net' and not (v and v.admin_level): - if request.headers.get("Authorization"): return {"error": "403 Forbidden"}, 403 - else: return render_template('errors/403.html', v=v), 403 + # if request.host == 'old.rdrama.net' and not (v and v.admin_level): + # if request.headers.get("Authorization"): return {"error": "403 Forbidden"}, 403 + # else: return render_template('errors/403.html', v=v), 403 check_ban_evade(v) resp = make_response(f(*args, v=v, **kwargs)) @@ -67,7 +67,7 @@ def auth_required(f): if not v: abort(401) - if request.host == 'old.rdrama.net' and not v.admin_level: abort(403) + # if request.host == 'old.rdrama.net' and not v.admin_level: abort(403) check_ban_evade(v) @@ -88,7 +88,7 @@ def is_not_banned(f): if not v: abort(401) - if request.host == 'old.rdrama.net' and not v.admin_level: abort(403) + # if request.host == 'old.rdrama.net' and not v.admin_level: abort(403) check_ban_evade(v) From 91899b3c01a555274bdd2a0e89c672bfdc87d484 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 14 Dec 2021 00:19:39 +0200 Subject: [PATCH 2/3] sfdfds --- files/helpers/wrappers.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/files/helpers/wrappers.py b/files/helpers/wrappers.py index f8b397f05..df250b7be 100644 --- a/files/helpers/wrappers.py +++ b/files/helpers/wrappers.py @@ -47,9 +47,9 @@ def auth_desired(f): v = get_logged_in_user() - # if request.host == 'old.rdrama.net' and not (v and v.admin_level): - # if request.headers.get("Authorization"): return {"error": "403 Forbidden"}, 403 - # else: return render_template('errors/403.html', v=v), 403 + if request.host == 'old.rdrama.net' and not (v and v.admin_level): + if request.headers.get("Authorization"): return {"error": "403 Forbidden"}, 403 + else: return render_template('errors/403.html', v=v), 403 check_ban_evade(v) resp = make_response(f(*args, v=v, **kwargs)) @@ -67,7 +67,7 @@ def auth_required(f): if not v: abort(401) - # if request.host == 'old.rdrama.net' and not v.admin_level: abort(403) + if request.host == 'old.rdrama.net' and not v.admin_level: abort(403) check_ban_evade(v) @@ -88,7 +88,7 @@ def is_not_banned(f): if not v: abort(401) - # if request.host == 'old.rdrama.net' and not v.admin_level: abort(403) + if request.host == 'old.rdrama.net' and not v.admin_level: abort(403) check_ban_evade(v) From e2d06d9d178051cdbeec80756899be511d61f41b Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 14 Dec 2021 00:46:04 +0200 Subject: [PATCH 3/3] fsddfs --- files/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/__main__.py b/files/__main__.py index 41b97b033..4fcb842e6 100644 --- a/files/__main__.py +++ b/files/__main__.py @@ -60,7 +60,7 @@ app.config["RATELIMIT_DEFAULTS_DEDUCT_WHEN"]=lambda:True app.config["RATELIMIT_DEFAULTS_EXEMPT_WHEN"]=lambda:False app.config["RATELIMIT_HEADERS_ENABLED"]=True app.config["CACHE_TYPE"] = "filesystem" -app.config["CACHE_DIR"] = "cache" +app.config["CACHE_DIR"] = "/cache" app.config["RATELIMIT_STORAGE_URL"] = environ.get("REDIS_URL", "redis://localhost") app.config['MAIL_SERVER'] = 'smtp.gmail.com' app.config['MAIL_PORT'] = 587