based on test failure, change the init of confirm_logout_form.

It should be moved in its own preprocessor OR rename the current one
This commit is contained in:
Glandos 2022-07-12 13:00:11 +02:00
parent 5e1a47b56d
commit b49ead7f63

View file

@ -123,6 +123,7 @@ def set_show_admin_dashboard_link(endpoint, values):
current_app.config["ACTIVATE_ADMIN_DASHBOARD"] current_app.config["ACTIVATE_ADMIN_DASHBOARD"]
and current_app.config["ADMIN_PASSWORD"] and current_app.config["ADMIN_PASSWORD"]
) )
g.confirm_logout_form = ConfirmLogoutForm()
@main.url_value_preprocessor @main.url_value_preprocessor
@ -150,7 +151,6 @@ def pull_project(endpoint, values):
if session.get(project.id) or is_admin or is_invitation: if session.get(project.id) or is_admin or is_invitation:
# add project into kwargs and call the original function # add project into kwargs and call the original function
g.project = project g.project = project
g.confirm_logout_form = ConfirmLogoutForm()
else: else:
# redirect to authentication page # redirect to authentication page
raise Redirect303(url_for(".authenticate", project_id=project_id)) raise Redirect303(url_for(".authenticate", project_id=project_id))