summaryrefslogtreecommitdiffstats
path: root/lib/private/user
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2014-04-15 17:46:48 +0200
committerArthur Schiwon <blizzz@owncloud.com>2014-04-15 17:46:48 +0200
commit64679b2e62909df9b3e493a0dc22151b5baae1a6 (patch)
treee55be82c0549b40d1a42938bc0e42446c1d27ace /lib/private/user
parentd826f33fae85e8ad68bd5d7b2b3a10cdeddf8827 (diff)
downloadnextcloud-server-64679b2e62909df9b3e493a0dc22151b5baae1a6.tar.gz
nextcloud-server-64679b2e62909df9b3e493a0dc22151b5baae1a6.zip
Remove limit and offset manipulation when getting users or groups, because it does not work when more than one user or group backend. Fixing it would be too costly performancewise, so we switch back to the model used in OC 5: limit and offset are effective per backend, and not a general constraint
Diffstat (limited to 'lib/private/user')
-rw-r--r--lib/private/user/manager.php14
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/private/user/manager.php b/lib/private/user/manager.php
index a2ad9d17702..14698452e88 100644
--- a/lib/private/user/manager.php
+++ b/lib/private/user/manager.php
@@ -175,13 +175,6 @@ class Manager extends PublicEmitter {
if (is_array($backendUsers)) {
foreach ($backendUsers as $uid) {
$users[] = $this->getUserObject($uid, $backend);
- if (!is_null($limit)) {
- $limit--;
- }
- if (!is_null($offset) and $offset > 0) {
- $offset--;
- }
-
}
}
}
@@ -211,13 +204,6 @@ class Manager extends PublicEmitter {
if (is_array($backendUsers)) {
foreach ($backendUsers as $uid => $displayName) {
$users[] = $this->getUserObject($uid, $backend);
- if (!is_null($limit)) {
- $limit--;
- }
- if (!is_null($offset) and $offset > 0) {
- $offset--;
- }
-
}
}
}