summaryrefslogtreecommitdiffstats
path: root/lib/user.php
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2013-02-11 21:42:27 +0100
committerThomas Mueller <thomas.mueller@tmit.eu>2013-02-11 21:42:27 +0100
commit037fcde1334d7b4d2bdeaaad0a71adc692b27ff8 (patch)
tree6f10b1a8d54cfea8cc3adf343de0bbf0f115f3d2 /lib/user.php
parentf58ed7a509da54fcd29e21dc6fc75528822157a4 (diff)
parent58e57151e51a02788377f761b183c15cd03b0ef0 (diff)
downloadnextcloud-server-037fcde1334d7b4d2bdeaaad0a71adc692b27ff8.tar.gz
nextcloud-server-037fcde1334d7b4d2bdeaaad0a71adc692b27ff8.zip
Merge branch 'master' into fixing-1424-master
Diffstat (limited to 'lib/user.php')
-rw-r--r--lib/user.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/user.php b/lib/user.php
index 76c4c45ee30..0ab224bb15f 100644
--- a/lib/user.php
+++ b/lib/user.php
@@ -445,10 +445,12 @@ class OC_User {
* Check whether a specified user can change his display name
*/
public static function canUserChangeDisplayName($uid) {
- foreach(self::$_usedBackends as $backend) {
- if($backend->implementsActions(OC_USER_BACKEND_SET_DISPLAYNAME)) {
- if($backend->userExists($uid)) {
- return true;
+ if (OC_Config::getValue('allow_user_to_change_display_name', true)) {
+ foreach(self::$_usedBackends as $backend) {
+ if($backend->implementsActions(OC_USER_BACKEND_SET_DISPLAYNAME)) {
+ if($backend->userExists($uid)) {
+ return true;
+ }
}
}
}
@@ -485,7 +487,7 @@ class OC_User {
*/
public static function getHome($uid) {
foreach(self::$_usedBackends as $backend) {
- if($backend->implementsActions(OC_USER_BACKEND_GET_HOME)) {
+ if($backend->implementsActions(OC_USER_BACKEND_GET_HOME) && $backend->userExists($uid)) {
$result=$backend->getHome($uid);
if($result) {
return $result;