From 0fe10a383e8e44ef207fcd2fe014d9c2293909d0 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Mon, 18 Apr 2022 07:55:12 +0200 Subject: [PATCH] Fix ScoURL --- app/scodoc/html_sidebar.py | 1 - app/views/scolar.py | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/scodoc/html_sidebar.py b/app/scodoc/html_sidebar.py index c700c1b80..5ab8eacf3 100644 --- a/app/scodoc/html_sidebar.py +++ b/app/scodoc/html_sidebar.py @@ -57,7 +57,6 @@ def sidebar_common(): Absences
""" ] - if current_user.has_permission( Permission.ScoUsersAdmin ) or current_user.has_permission(Permission.ScoUsersView): diff --git a/app/views/scolar.py b/app/views/scolar.py index 23abde80b..e0472af1c 100644 --- a/app/views/scolar.py +++ b/app/views/scolar.py @@ -325,9 +325,8 @@ def showEtudLog(etudid, format="html"): # ---------- PAGE ACCUEIL (listes) -------------- -@bp.route("/") +@bp.route("/", alias=True) @bp.route("/index_html") -@bp.route("/index") @scodoc @permission_required(Permission.ScoView) @scodoc7func