From b49ead7f637f974bfd19684ef2a94843f1635d9f Mon Sep 17 00:00:00 2001 From: Glandos Date: Tue, 12 Jul 2022 13:00:11 +0200 Subject: [PATCH] based on test failure, change the init of confirm_logout_form. It should be moved in its own preprocessor OR rename the current one --- ihatemoney/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ihatemoney/web.py b/ihatemoney/web.py index 7171b5ea..aab47a48 100644 --- a/ihatemoney/web.py +++ b/ihatemoney/web.py @@ -123,6 +123,7 @@ def set_show_admin_dashboard_link(endpoint, values): current_app.config["ACTIVATE_ADMIN_DASHBOARD"] and current_app.config["ADMIN_PASSWORD"] ) + g.confirm_logout_form = ConfirmLogoutForm() @main.url_value_preprocessor @@ -150,7 +151,6 @@ def pull_project(endpoint, values): if session.get(project.id) or is_admin or is_invitation: # add project into kwargs and call the original function g.project = project - g.confirm_logout_form = ConfirmLogoutForm() else: # redirect to authentication page raise Redirect303(url_for(".authenticate", project_id=project_id))