diff options
author | michag86 <micha_g@arcor.de> | 2015-08-18 17:43:16 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2015-08-26 11:00:13 +0200 |
commit | e95863822153e6b88a365e6db83444bdf1c4c0ce (patch) | |
tree | 94eeccbdd7c0b4f17f3d7ac0723c5f686b5f2ebb /apps/provisioning_api/appinfo | |
parent | 90e11ee0056e11b2275226edfb823bece0b7c5cf (diff) | |
download | nextcloud-server-e95863822153e6b88a365e6db83444bdf1c4c0ce.tar.gz nextcloud-server-e95863822153e6b88a365e6db83444bdf1c4c0ce.zip |
enable api getUsers for subadmins
Now subadmins can get a list of users they are subadmins of.
Diffstat (limited to 'apps/provisioning_api/appinfo')
-rw-r--r-- | apps/provisioning_api/appinfo/routes.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/provisioning_api/appinfo/routes.php b/apps/provisioning_api/appinfo/routes.php index 2ee3a185dae..77a44cd85b6 100644 --- a/apps/provisioning_api/appinfo/routes.php +++ b/apps/provisioning_api/appinfo/routes.php @@ -32,7 +32,7 @@ $users = new \OCA\Provisioning_API\Users( \OC::$server->getGroupManager(), \OC::$server->getUserSession() ); -API::register('get', '/cloud/users', [$users, 'getUsers'], 'provisioning_api', API::ADMIN_AUTH); +API::register('get', '/cloud/users', [$users, 'getUsers'], 'provisioning_api', API::SUBADMIN_AUTH); API::register('post', '/cloud/users', [$users, 'addUser'], 'provisioning_api', API::ADMIN_AUTH); API::register('get', '/cloud/users/{userid}', [$users, 'getUser'], 'provisioning_api', API::USER_AUTH); API::register('put', '/cloud/users/{userid}', [$users, 'editUser'], 'provisioning_api', API::USER_AUTH); |