summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Encryption/Util.php7
-rw-r--r--lib/private/legacy/user.php19
-rw-r--r--lib/public/User.php13
3 files changed, 5 insertions, 34 deletions
diff --git a/lib/private/Encryption/Util.php b/lib/private/Encryption/Util.php
index fc0adbbd47b..1f5a511c39b 100644
--- a/lib/private/Encryption/Util.php
+++ b/lib/private/Encryption/Util.php
@@ -271,9 +271,12 @@ class Util {
}
public function getUserWithAccessToMountPoint($users, $groups) {
- $result = array();
+ $result = [];
if (in_array('all', $users)) {
- $result = \OCP\User::getUsers();
+ $users = $this->userManager->search('', null, null);
+ foreach ($users as $user) {
+ $result[] = $user->getUID();
+ }
} else {
$result = array_merge($result, $users);
diff --git a/lib/private/legacy/user.php b/lib/private/legacy/user.php
index 8f342281adb..07aa5a92f9a 100644
--- a/lib/private/legacy/user.php
+++ b/lib/private/legacy/user.php
@@ -367,25 +367,6 @@ class OC_User {
}
/**
- * Get a list of all users
- *
- * @return array an array of all uids
- *
- * Get a list of all users.
- * @param string $search
- * @param integer $limit
- * @param integer $offset
- */
- public static function getUsers($search = '', $limit = null, $offset = null) {
- $users = \OC::$server->getUserManager()->search($search, $limit, $offset);
- $uids = array();
- foreach ($users as $user) {
- $uids[] = $user->getUID();
- }
- return $uids;
- }
-
- /**
* Get a list of all users display name
*
* @param string $search
diff --git a/lib/public/User.php b/lib/public/User.php
index 14fdd6fb1ab..6e4e1d52a72 100644
--- a/lib/public/User.php
+++ b/lib/public/User.php
@@ -58,19 +58,6 @@ class User {
}
/**
- * Get a list of all users
- * @param string $search search pattern
- * @param int|null $limit
- * @param int|null $offset
- * @return array an array of all uids
- * @deprecated 8.1.0 use method search() of \OCP\IUserManager - \OC::$server->getUserManager()
- * @since 5.0.0
- */
- public static function getUsers( $search = '', $limit = null, $offset = null ) {
- return \OC_User::getUsers( $search, $limit, $offset );
- }
-
- /**
* Get the user display name of the user currently logged in.
* @param string|null $user user id or null for current user
* @return string display name