diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-10-20 14:28:31 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-10-20 14:28:31 +0200 |
commit | 60abc2738ba2ea6eed2d991f37d3a546c5826909 (patch) | |
tree | 96327eaac2e9f7b1851846b98e21d56aa0b42703 /apps/provisioning_api/appinfo | |
parent | 474f34eb6bd60c0024853276bcce018fa6cdb42a (diff) | |
parent | 23db51f69a2708949d438ba120c1666aae65c42d (diff) | |
download | nextcloud-server-60abc2738ba2ea6eed2d991f37d3a546c5826909.tar.gz nextcloud-server-60abc2738ba2ea6eed2d991f37d3a546c5826909.zip |
Merge pull request #18399 from owncloud/api-getusers-for-subadmins
enable api getUsers for subadmins
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 5c53684fd77..17cfea26572 100644 --- a/apps/provisioning_api/appinfo/routes.php +++ b/apps/provisioning_api/appinfo/routes.php @@ -33,7 +33,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); |