summaryrefslogtreecommitdiffstats
path: root/lib/private/Encryption
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-03-25 20:33:24 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2018-03-25 20:33:24 +0200
commit6c8caa1641732c57fe59483fc2cdd5bcd7bd0163 (patch)
tree57c69a5be00c4ae2c43bf2ce4094c3f700e1f285 /lib/private/Encryption
parent89ebb8a6631eaa273d34864224986e4efb2c365d (diff)
downloadnextcloud-server-6c8caa1641732c57fe59483fc2cdd5bcd7bd0163.tar.gz
nextcloud-server-6c8caa1641732c57fe59483fc2cdd5bcd7bd0163.zip
Remove deprecated \OCP\User::getUsers
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Encryption')
-rw-r--r--lib/private/Encryption/Util.php7
1 files changed, 5 insertions, 2 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);