diff --git a/app/scodoc/sco_edit_ue.py b/app/scodoc/sco_edit_ue.py
index 33a40c06..5c61b64a 100644
--- a/app/scodoc/sco_edit_ue.py
+++ b/app/scodoc/sco_edit_ue.py
@@ -778,11 +778,17 @@ du programme" (menu "Semestre") si vous avez un semestre en cours);
msg_refcomp = "changer"
H.append(f"""
- {descr_refcomp}""")
if current_user.has_permission(Permission.ScoChangeFormation):
- H.append(
- f"""{msg_refcomp}"""
- )
+ if (
+ formation.referentiel_competence is None
+ or formation.formsemestres.count() == 0
+ ):
+ H.append(
+ f"""{msg_refcomp}"""
+ )
+ elif formation.referentiel_competence is not None:
+ H.append("""(non modifiable car utilisé par des semestres)""")
H.append(
f"""