From d820db69c4d0813755b4e404746be12704a8d174 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 26 Nov 2022 06:22:09 +0200 Subject: [PATCH] tell ppl how much Truescore they need to see /h/chudrama --- files/routes/front.py | 2 +- files/templates/errors/error.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/front.py b/files/routes/front.py index 2ed383775..cc367e872 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -43,7 +43,7 @@ def front_all(v, sub=None, subdomain=None): #### WPD TEMP #### end special front logic if sub: sub = get_sub_by_name(sub, graceful=True) - if sub and not User.can_see(v, sub): abort(403) + if sub and not User.can_see(v, sub): abort(403, "You need 5000 truescore to be able to see /h/chudrama") if (request.path.startswith('/h/') or request.path.startswith('/s/')) and not sub: abort(404) diff --git a/files/templates/errors/error.html b/files/templates/errors/error.html index d4f92a9dc..1e665add1 100644 --- a/files/templates/errors/error.html +++ b/files/templates/errors/error.html @@ -11,7 +11,7 @@
{{code}} {{title}}

{{msg|safe}}

{% if details -%} -
{{details|safe}}
+
{{details|safe}}
{%- endif %}
Go to frontpage