forked from ScoDoc/ScoDoc
change exc sur can_change_groups
This commit is contained in:
parent
126f719f7a
commit
af12191cc4
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user