diff options
author | Björn Schießle <schiessle@owncloud.com> | 2013-02-10 14:43:31 +0100 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2013-02-10 14:43:31 +0100 |
commit | d8fee28b3becfff155c73395c96d76a0315788a8 (patch) | |
tree | 240e3ad12c53570dbf10f2d4d8d1dae7c902c99e /settings | |
parent | 1c56539c01c162676a05d90e3598b7d68394ac73 (diff) | |
download | nextcloud-server-d8fee28b3becfff155c73395c96d76a0315788a8.tar.gz nextcloud-server-d8fee28b3becfff155c73395c96d76a0315788a8.zip |
add switch to enable/disable the possibility to change the display name by the user
Diffstat (limited to 'settings')
-rw-r--r-- | settings/ajax/changedisplayname.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/settings/ajax/changedisplayname.php b/settings/ajax/changedisplayname.php index 8f2ff865bd5..69462330765 100644 --- a/settings/ajax/changedisplayname.php +++ b/settings/ajax/changedisplayname.php @@ -15,6 +15,10 @@ if(OC_SubAdmin::isUserAccessible(OC_User::getUser(), $username)) { $userstatus = 'subadmin';
}
+if ($username == OC_User::getUser() && OC_User::canUserChangeDisplayName($username)) {
+ $userstatus = 'changeOwnDisplayName';
+}
+
if(is_null($userstatus)) {
OC_JSON::error( array( "data" => array( "message" => $l->t("Authentication error") )));
exit();
|