feat: Update user registration to include first and last name fields and enhance permission checks for upload actions

This commit is contained in:
2026-04-17 23:22:10 +02:00
parent 3b637de188
commit 9b7ba39702
5 changed files with 151 additions and 38 deletions
+3 -2
View File
@@ -415,8 +415,9 @@ def add_user(
for key, value in page_permissions.items():
permission_defaults['pages'][str(key)] = bool(value)
alias_source = name if str(name or '').strip() else username
name_alias = build_name_synonym(alias_source, '')
alias_first = name if str(name or '').strip() else username
alias_last = last_name if str(last_name or '').strip() else ''
name_alias = build_name_synonym(alias_first, alias_last)
user_doc = {
'Username': username,