rename file, show correct status

This commit is contained in:
lelo 2025-05-30 22:29:53 +02:00
parent b2e61129d8
commit 83a0b4f5ba
2 changed files with 2 additions and 2 deletions

View File

@ -152,7 +152,7 @@ def require_secret(f):
header_text_color = app_config.get('header_text_color', '#fff')
background_color = app_config.get('background_color', '#fff')
main_text_color = app_config.get('main_text_color', '#000')
return render_template('index.html',
return render_template('permission.html',
title_short=title_short,
title_long=title_long,
header_color=header_color,
@ -160,7 +160,7 @@ def require_secret(f):
main_text_color=main_text_color,
background_color=background_color,
admin_enabled=is_admin()
)
), 403 # Forbidden
return decorated_function
def require_admin(f):