summaryrefslogtreecommitdiffstats
path: root/lib/private/user.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2014-12-09 18:36:40 +0100
committerLukas Reschke <lukas@owncloud.com>2014-12-10 12:07:34 +0100
commit5dc6406b7075a6f1db3ada7a9d0f5ddc93f58b18 (patch)
tree87221af31e42aaa9031672706752309b1ccc37db /lib/private/user.php
parent5398bbdc003a93f8652b7c7a88bc80e7710996c9 (diff)
downloadnextcloud-server-5dc6406b7075a6f1db3ada7a9d0f5ddc93f58b18.tar.gz
nextcloud-server-5dc6406b7075a6f1db3ada7a9d0f5ddc93f58b18.zip
Add filter for 'backend' to user REST route
This adds a "backend" type filter to the index REST route which is a pre-requisite for https://github.com/owncloud/core/issues/12620 For example when calling `index.php/settings/users/users?offset=0&limit=10&gid=&pattern=&backend=OC_User_Database` only users within the backend `OC_User_Database` would be shown. (requires sending a CSRF token as well) Depends upon https://github.com/owncloud/core/pull/12711
Diffstat (limited to 'lib/private/user.php')
-rw-r--r--lib/private/user.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/user.php b/lib/private/user.php
index f93b76a3a64..ff45e9e26a6 100644
--- a/lib/private/user.php
+++ b/lib/private/user.php
@@ -546,6 +546,7 @@ class OC_User {
* @return array associative array with all display names (value) and corresponding uids (key)
*
* Get a list of all display names and user ids.
+ * @deprecated Use \OC::$server->getUserManager->searchDisplayName($search, $limit, $offset) instead.
*/
public static function getDisplayNames($search = '', $limit = null, $offset = null) {
$displayNames = array();