From 83a0b4f5ba2420ba846d607b205f07bce0b19c05 Mon Sep 17 00:00:00 2001 From: lelo Date: Fri, 30 May 2025 22:29:53 +0200 Subject: [PATCH] rename file, show correct status --- auth.py | 4 ++-- templates/{index.html => permission.html} | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename templates/{index.html => permission.html} (100%) diff --git a/auth.py b/auth.py index e604ed0..72c2cca 100644 --- a/auth.py +++ b/auth.py @@ -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): diff --git a/templates/index.html b/templates/permission.html similarity index 100% rename from templates/index.html rename to templates/permission.html