Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: After setting the 'allow_user_to_change_display_name' parameter to 'false', users are unable to modify their email. #51298

Closed
5 of 8 tasks
ywtoly opened this issue Mar 6, 2025 · 1 comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 30-feedback bug

Comments

@ywtoly
Copy link

ywtoly commented Mar 6, 2025

⚠️ This issue respects the following points: ⚠️

Bug description

After configuring 'allow_user_to_change_display_name'=>false, in config. php, it was found that users were unable to modify their full name (which was the expected result), and they were also unable to configure their email. Is this the expected result?

Steps to reproduce

  1. Modify config. php
  2. Add 'allow_user_tochange-display_name'=>false,
  3. Ordinary users log in and enter the settings, but find that they cannot modify their email.

Expected behavior

The full name of the user cannot be modified, but email modifications should not be restricted.

Nextcloud Server version

30

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.3

Web server

Apache (supported)

Database engine version

MySQL

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

List of activated Apps

Nextcloud Signing status

Nextcloud Logs

Additional info

No response

@ywtoly ywtoly added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Mar 6, 2025
@solracsf
Copy link
Member

solracsf commented Mar 6, 2025

Is this the expected result?

Per code, yes:

if ($allowUserToChangeDisplayName === false
&& in_array($property, [IAccountManager::PROPERTY_DISPLAYNAME, IAccountManager::PROPERTY_EMAIL], true)) {
continue;
}

@kesselb kesselb closed this as completed Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 30-feedback bug
Projects
None yet
Development

No branches or pull requests

4 participants