Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
e5d46d0d
Commit
e5d46d0d
authored
Nov 13, 2014
by
Morris Jobke
Browse files
Merge pull request #11956 from owncloud/remove-check-for-allow_user_to_change_display_name
removal of wrong/double implemented check
parents
559b34e5
7e70c4ee
Changes
1
Show whitespace changes
Inline
Side-by-side
lib/private/user/user.php
View file @
e5d46d0d
...
...
@@ -115,7 +115,7 @@ class User implements IUser {
*/
public
function
setDisplayName
(
$displayName
)
{
$displayName
=
trim
(
$displayName
);
if
(
$this
->
canChangeDisplayName
(
)
&&
!
empty
(
$displayName
))
{
if
(
$this
->
backend
->
implementsActions
(
\
OC_USER_BACKEND_SET_DISPLAYNAME
)
&&
!
empty
(
$displayName
))
{
$this
->
displayName
=
$displayName
;
$result
=
$this
->
backend
->
setDisplayName
(
$this
->
uid
,
$displayName
);
return
$result
!==
false
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment