Only show /leaderboard link in settings2 menu to admins, also a more polite 403 message, also more readable HTML
This commit is contained in:
parent
6b53867ae1
commit
2adf38a377
2 changed files with 23 additions and 9 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue