diff --git a/note_kfet/settings/base.py b/note_kfet/settings/base.py index f319b2db..f94a68e0 100644 --- a/note_kfet/settings/base.py +++ b/note_kfet/settings/base.py @@ -245,7 +245,7 @@ REST_FRAMEWORK = { FORM_RENDERER = 'django.forms.renderers.TemplatesSetting' # After login redirect user to transfer page -LOGIN_REDIRECT_URL = '/note/transfer/' +LOGIN_REDIRECT_URL = '/' # An user session will expired after 3 hours SESSION_COOKIE_AGE = 60 * 60 * 3 diff --git a/note_kfet/templates/base.html b/note_kfet/templates/base.html index e597d5ca..1e740012 100644 --- a/note_kfet/templates/base.html +++ b/note_kfet/templates/base.html @@ -64,7 +64,8 @@ SPDX-License-Identifier: GPL-3.0-or-later {% trans 'Consumptions' %} {% endif %} - {% if "note.transaction"|not_empty_model_list %} + {# FIXME Find a better solution to check if a user has the right to see the transfer page #} + {% if "note.alias"|model_list_length >= 2 %}