diff --git a/app/scodoc/sco_formations.py b/app/scodoc/sco_formations.py index 125e8215d..6e9177f10 100644 --- a/app/scodoc/sco_formations.py +++ b/app/scodoc/sco_formations.py @@ -507,6 +507,7 @@ def formation_list_table() -> GenTable: ) editable = current_user.has_permission(Permission.EditFormation) + can_implement = current_user.has_permission(Permission.EditFormSemestre) # Traduit/ajoute des champs à afficher: rows = [] @@ -547,15 +548,18 @@ def formation_list_table() -> GenTable: )}">{s.session_id()}""" for s in row["formsemestres"] ] - + [ - f"""ajouter """ - ] + ] + if can_implement + else [] + ) ) if row["formsemestres"]: row["date_fin_dernier_sem"] = (