summaryrefslogtreecommitdiffstats
path: root/lib/private/legacy/user.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-07-24 12:11:22 +0200
committerMorris Jobke <hey@morrisjobke.de>2017-07-24 12:11:24 +0200
commit7790017a1460f3acd18b3b1d8adae66790f97646 (patch)
treeef6e45fbbd7623757658735c048069587ea5b419 /lib/private/legacy/user.php
parent989614f9d5faa11157b232785537eb5cca927649 (diff)
downloadnextcloud-server-7790017a1460f3acd18b3b1d8adae66790f97646.tar.gz
nextcloud-server-7790017a1460f3acd18b3b1d8adae66790f97646.zip
Cleanup code of personal page to use public interfaces
* public interfaces instead of static code calls * drop static private namespace methods Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/legacy/user.php')
-rw-r--r--lib/private/legacy/user.php51
1 files changed, 0 insertions, 51 deletions
diff --git a/lib/private/legacy/user.php b/lib/private/legacy/user.php
index 7e7cbab3bce..161942c995c 100644
--- a/lib/private/legacy/user.php
+++ b/lib/private/legacy/user.php
@@ -412,57 +412,6 @@ class OC_User {
}
/**
- * Check whether user can change his avatar
- *
- * @param string $uid The username
- * @return bool
- *
- * Check whether a specified user can change his avatar
- */
- public static function canUserChangeAvatar($uid) {
- $user = \OC::$server->getUserManager()->get($uid);
- if ($user) {
- return $user->canChangeAvatar();
- } else {
- return false;
- }
- }
-
- /**
- * Check whether user can change his password
- *
- * @param string $uid The username
- * @return bool
- *
- * Check whether a specified user can change his password
- */
- public static function canUserChangePassword($uid) {
- $user = \OC::$server->getUserManager()->get($uid);
- if ($user) {
- return $user->canChangePassword();
- } else {
- return false;
- }
- }
-
- /**
- * Check whether user can change his display name
- *
- * @param string $uid The username
- * @return bool
- *
- * Check whether a specified user can change his display name
- */
- public static function canUserChangeDisplayName($uid) {
- $user = \OC::$server->getUserManager()->get($uid);
- if ($user) {
- return $user->canChangeDisplayName();
- } else {
- return false;
- }
- }
-
- /**
* Check if the password is correct
*
* @param string $uid The username