diff --git a/app/scodoc/sco_formations.py b/app/scodoc/sco_formations.py index 125e8215..6e9177f1 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"] = (