mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-05 12:41:49 +02:00
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:
parent
5e1a47b56d
commit
b49ead7f63
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||||
|
|
Loading…
Reference in a new issue