aboutsummaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api/appinfo
diff options
context:
space:
mode:
authormichag86 <micha_g@arcor.de>2015-08-27 18:29:28 +0200
committerRoeland Jago Douma <rullzer@owncloud.com>2015-11-12 22:31:17 +0100
commit3b88c469c781e5255663e81c7c6b0459cbba34b2 (patch)
tree615d4a17f47c8d7c164821bc3b058425ef3c31ae /apps/provisioning_api/appinfo
parentaff4aed43ccea159dae796e89e2684f967af7fa2 (diff)
downloadnextcloud-server-3b88c469c781e5255663e81c7c6b0459cbba34b2.tar.gz
nextcloud-server-3b88c469c781e5255663e81c7c6b0459cbba34b2.zip
enable api addUser for subadmins
* Fix existing unit tests
Diffstat (limited to 'apps/provisioning_api/appinfo')
-rw-r--r--apps/provisioning_api/appinfo/routes.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/provisioning_api/appinfo/routes.php b/apps/provisioning_api/appinfo/routes.php
index dcf18e0e53b..d2cba549846 100644
--- a/apps/provisioning_api/appinfo/routes.php
+++ b/apps/provisioning_api/appinfo/routes.php
@@ -37,7 +37,7 @@ $users = new \OCA\Provisioning_API\Users(
\OC::$server->getLogger()
);
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('post', '/cloud/users', [$users, 'addUser'], 'provisioning_api', API::SUBADMIN_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);
API::register('delete', '/cloud/users/{userid}', [$users, 'deleteUser'], 'provisioning_api', API::SUBADMIN_AUTH);