-
-
Couldn't load subscription status.
- Fork 4.6k
[stable29] fix(settings): Handle email change restriction separately from display name change restriction #51899
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
c213284 to
b0a948e
Compare
| $accountParameters = [ | ||
| 'avatarChangeSupported' => $user->canChangeAvatar(), | ||
| 'displayNameChangeSupported' => $user->canChangeDisplayName(), | ||
| 'emailChangeSupported' => $user->canChangeEmail(), |
Check notice
Code scanning / Psalm
UndefinedInterfaceMethod 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>
b0a948e to
f1e3312
Compare
|
/compile |
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
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.