diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2015-07-25 15:01:31 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2015-08-02 10:22:26 +0200 |
commit | 97d79202ac628b004f5d9e167b5b8c9a36da9906 (patch) | |
tree | dba3fca8354e5bcb4487805da8e2e0f32b98a92c /apps/provisioning_api/appinfo | |
parent | 9f59add9ed596a156ae18ce8e28d1bfc9b596617 (diff) | |
download | nextcloud-server-97d79202ac628b004f5d9e167b5b8c9a36da9906.tar.gz nextcloud-server-97d79202ac628b004f5d9e167b5b8c9a36da9906.zip |
[provisioning_api] OC_User to IUserSession
Diffstat (limited to 'apps/provisioning_api/appinfo')
-rw-r--r-- | apps/provisioning_api/appinfo/routes.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/provisioning_api/appinfo/routes.php b/apps/provisioning_api/appinfo/routes.php index 1fe9ce73108..e656445abe5 100644 --- a/apps/provisioning_api/appinfo/routes.php +++ b/apps/provisioning_api/appinfo/routes.php @@ -29,7 +29,8 @@ use OCP\API; $users = new \OCA\Provisioning_API\Users( \OC::$server->getUserManager(), \OC::$server->getConfig(), - \OC::$server->getGroupManager() + \OC::$server->getGroupManager(), + \OC::$server->getUserSession() ); API::register('get', '/cloud/users', [$users, 'getUsers'], 'provisioning_api', API::ADMIN_AUTH); API::register('post', '/cloud/users', [$users, 'addUser'], 'provisioning_api', API::ADMIN_AUTH); @@ -45,7 +46,8 @@ API::register('get', '/cloud/users/{userid}/subadmins', [$users, 'getUserSubAdmi // Groups $groups = new \OCA\Provisioning_API\Groups( - \OC::$server->getGroupManager() + \OC::$server->getGroupManager(), + \OC::$server->getUserSession() ); API::register('get', '/cloud/groups', [$groups, 'getGroups'], 'provisioning_api', API::SUBADMIN_AUTH); API::register('post', '/cloud/groups', [$groups, 'addGroup'], 'provisioning_api', API::SUBADMIN_AUTH); |