Only show /leaderboard link in settings2 menu to admins, also a more polite 403 message, also more readable HTML

This commit is contained in:
Jack Byrne 2022-08-21 01:35:42 +01:00
parent 6b53867ae1
commit 2adf38a377
2 changed files with 23 additions and 9 deletions

View file

@ -31,7 +31,7 @@ def error_403(e):
if not description: description = "403 Forbidden"
return {"error": description}, 403
else:
if not description: description = "YOU AREN'T WELCOME HERE GO AWAY"
if not description: description = "You don't have access to this page."
return render_template('errors/403.html', description=description, err=True), 403