This commit is contained in:
Emmanuel Viennet 2021-10-10 21:09:27 +02:00
parent e6e1835cca
commit 179442aa69
2 changed files with 15 additions and 16 deletions

View File

@ -459,7 +459,8 @@ def check_modif_user(
"%s %s (pseudo=%s)" % (x.prenom, x.nom, x.user_name)
for x in similar_users
]
) + MSG_OPT,
)
+ MSG_OPT,
)
# Roles ?
return True, ""

View File

@ -383,7 +383,7 @@ def create_user_form(user_name=None, edit=0, all_roles=1):
ok, msg = sco_users.check_modif_user(
edit,
ignore_optionals= force,
ignore_optionals=force,
user_name=user_name,
nom=vals["nom"],
prenom=vals["prenom"],
@ -391,9 +391,7 @@ def create_user_form(user_name=None, edit=0, all_roles=1):
roles=vals["roles"],
)
if not ok:
H.append(
tf_error_message(msg)
)
H.append(tf_error_message(msg))
return "\n".join(H) + "\n" + tf[1] + F
if "date_expiration" in vals: