diff options
author | Lukas Reschke <lukas@owncloud.com> | 2014-12-09 18:36:40 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2014-12-10 12:07:34 +0100 |
commit | 5dc6406b7075a6f1db3ada7a9d0f5ddc93f58b18 (patch) | |
tree | 87221af31e42aaa9031672706752309b1ccc37db /lib/private/user | |
parent | 5398bbdc003a93f8652b7c7a88bc80e7710996c9 (diff) | |
download | nextcloud-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')
-rw-r--r-- | lib/private/user/manager.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/private/user/manager.php b/lib/private/user/manager.php index 4fa3711e3b8..b283269916a 100644 --- a/lib/private/user/manager.php +++ b/lib/private/user/manager.php @@ -63,6 +63,14 @@ class Manager extends PublicEmitter implements IUserManager { } /** + * Get the active backends + * @return \OC_User_Interface[] + */ + public function getBackends() { + return $this->backends; + } + + /** * register a user backend * * @param \OC_User_Interface $backend |