forked from ScoDoc/ScoDoc
Fiix UE edit. Close #439
This commit is contained in:
parent
b34484784a
commit
45a2fa174c
@ -236,6 +236,7 @@ def do_module_edit(vals: dict) -> None:
|
||||
mod = module_list({"module_id": vals["module_id"]})[0]
|
||||
if module_is_locked(mod["module_id"]):
|
||||
# formation verrouillée: empeche de modifier certains champs:
|
||||
vals = vals.copy()
|
||||
protected_fields = ("coefficient", "ue_id", "matiere_id", "semestre_id")
|
||||
for f in protected_fields:
|
||||
if f in vals:
|
||||
|
Loading…
Reference in New Issue
Block a user