Update opolka/ScoDoc from ScoDoc/ScoDoc #2

Merged
opolka merged 1272 commits from ScoDoc/ScoDoc:master into master 2024-05-27 09:11:04 +02:00
Showing only changes of commit 1ddf9b6ab8 - Show all commits

View File

@ -504,7 +504,7 @@ def create_user_form(user_name=None, edit=0, all_roles=True):
if g.scodoc_dept in selectable_dept_acronyms
else (auth_dept or "")
)
if len(selectable_dept_acronyms) > 1:
if len(selectable_dept_acronyms) > 0:
selectable_dept_acronyms = sorted(list(selectable_dept_acronyms))
descr.append(
(
@ -529,7 +529,7 @@ def create_user_form(user_name=None, edit=0, all_roles=True):
{
"input_type": "separator",
"title": f"""L'utilisateur appartient au département {
the_user.dept or "(tous)"}""",
the_user.dept or "(tous/aucun)"}""",
},
)
)
@ -539,7 +539,7 @@ def create_user_form(user_name=None, edit=0, all_roles=True):
"d",
{
"input_type": "separator",
"title": f"L'utilisateur sera créé dans le département {auth_dept}",
"title": f"L'utilisateur sera créé dans le département {auth_dept or 'aucun'}",
},
)
)