feat: Update user registration to include first and last name fields and enhance permission checks for upload actions
This commit is contained in:
+3
-2
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user