-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
[stable30] fix(settings): Handle email change restriction separately from display name change restriction #51900
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
Conversation
| $allowDisplayNameChange = $this->config->getSystemValue('allow_user_to_change_display_name', true); | ||
| if ($allowDisplayNameChange === true && ( | ||
| $targetUser->getBackend() instanceof ISetDisplayNameBackend | ||
| || $targetUser->getBackend()->implementsActions(Backend::SET_DISPLAYNAME) |
Check notice
Code scanning / Psalm
PossiblyNullReference Note
| $allowDisplayNameChange = $this->config->getSystemValue('allow_user_to_change_display_name', true); | ||
| if ($allowDisplayNameChange === true && ( | ||
| $targetUser->getBackend() instanceof ISetDisplayNameBackend | ||
| || $targetUser->getBackend()->implementsActions(Backend::SET_DISPLAYNAME) |
Check notice
Code scanning / Psalm
DeprecatedMethod Note
| $allowDisplayNameChange = $this->config->getSystemValue('allow_user_to_change_display_name', true); | ||
| if ($allowDisplayNameChange !== false && ( | ||
| $targetUser->getBackend() instanceof ISetDisplayNameBackend | ||
| || $targetUser->getBackend()->implementsActions(Backend::SET_DISPLAYNAME) |
Check notice
Code scanning / Psalm
PossiblyNullReference Note
| $allowDisplayNameChange = $this->config->getSystemValue('allow_user_to_change_display_name', true); | ||
| if ($allowDisplayNameChange !== false && ( | ||
| $targetUser->getBackend() instanceof ISetDisplayNameBackend | ||
| || $targetUser->getBackend()->implementsActions(Backend::SET_DISPLAYNAME) |
Check notice
Code scanning / Psalm
DeprecatedMethod Note
747c3b9 to
9d1bace
Compare
9d1bace to
b8203dd
Compare
|
/compile |
| $accountParameters = [ | ||
| 'avatarChangeSupported' => $user->canChangeAvatar(), | ||
| 'displayNameChangeSupported' => $user->canChangeDisplayName(), | ||
| 'emailChangeSupported' => $user->canChangeEmail(), |
Check notice
Code scanning / Psalm
UndefinedInterfaceMethod Note
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems legit @susnux ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes but intentional.
Its not on the public interface (no backport of public interface changes), but on the private implementation.
| $permittedFields[] = IAccountManager::PROPERTY_DISPLAYNAME; | ||
| } | ||
| $allowDisplayNameChange = $this->config->getSystemValue('allow_user_to_change_display_name', true); | ||
| if ($allowDisplayNameChange !== false && ( |
Check notice
Code scanning / Psalm
PossiblyNullReference Note
…y name change restriction Co-authored-by: provokateurin <kate@provokateurin.de> Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Co-authored-by: Louis <louis@chmn.me> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
1af09b0 to
185e97b
Compare
|
Rebased |
Backport of #51745
Warning, This backport's changes differ from the original and might be incomplete⚠️
Todo
Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.