Fix typo in user_delete

This commit is contained in:
Emmanuel Viennet 2025-01-17 19:21:47 +01:00
parent 6e2f3cb2c2
commit 31c64ef2e7

View File

@ -229,7 +229,7 @@ def user_delete(username): # user-delete
)
return 1
# - Resp. Module
if ModuleImpl.query.filter_by(responsable_id=217).count() > 0:
if ModuleImpl.query.filter_by(responsable_id=u.id).count() > 0:
sys.stderr.write(
"\nuser_delete: erreur: utilisateur déclaré comme enseignant\n"
)