From 786bad7f6e23d2dfef0ab6c32a340f9c33577f8e Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Wed, 1 Feb 2023 11:07:46 -0300 Subject: [PATCH] typo --- app/scodoc/sco_permissions_check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scodoc/sco_permissions_check.py b/app/scodoc/sco_permissions_check.py index d81e07ce..c0a72952 100644 --- a/app/scodoc/sco_permissions_check.py +++ b/app/scodoc/sco_permissions_check.py @@ -166,7 +166,7 @@ def check_access_diretud(formsemestre_id, required_permission=Permission.ScoImpl def can_change_groups(formsemestre_id: int) -> bool: "Vrai si l'utilisateur peut changer les groupes dans ce semestre" - formsemestre: FormSemestre = FormSemestre.query.get_or_404() + formsemestre: FormSemestre = FormSemestre.query.get_or_404(formsemestre_id) if not formsemestre.etat: return False # semestre verrouillé if current_user.has_permission(Permission.ScoEtudChangeGroups):