1
0
forked from ScoDoc/ScoDoc

change exc sur can_change_groups

This commit is contained in:
Emmanuel Viennet 2022-01-10 23:43:12 +01:00
parent 126f719f7a
commit af12191cc4

View File

@ -168,7 +168,7 @@ def can_change_groups(formsemestre_id):
"Vrai si l'utilisateur peut changer les groupes dans ce semestre"
from app.scodoc import sco_formsemestre
sem = sco_formsemestre.get_formsemestre(formsemestre_id)
sem = sco_formsemestre.get_formsemestre(formsemestre_id, raise_soft_exc=True)
if not sem["etat"]:
return False # semestre verrouillé
if current_user.has_permission(Permission.ScoEtudChangeGroups):