Autorise inscription aux groupes de parcours (non éditables)

This commit is contained in:
Emmanuel Viennet 2022-08-25 12:47:17 +02:00
parent 9b112dfbf9
commit 6ecd063bfb

View File

@ -277,13 +277,8 @@ def do_formsemestre_inscription_with_modules(
for group_id in group_ids: for group_id in group_ids:
if group_id and not group_id in gdone: if group_id and not group_id in gdone:
group = GroupDescr.query.get_or_404(group_id) group = GroupDescr.query.get_or_404(group_id)
if group.partition.groups_editable:
sco_groups.set_group(etudid, group_id) sco_groups.set_group(etudid, group_id)
gdone[group_id] = 1 gdone[group_id] = 1
else:
log(
f"do_formsemestre_inscription_with_modules: group {group:r} belongs to non editable partition"
)
# Inscription à tous les modules de ce semestre # Inscription à tous les modules de ce semestre
modimpls = sco_moduleimpl.moduleimpl_withmodule_list( modimpls = sco_moduleimpl.moduleimpl_withmodule_list(