From b745e7573731039ab0cf97440782c170069d25e2 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Sat, 25 Jul 2015 14:32:49 +0200 Subject: [provisioning_api] Moved groups away from static stuff --- apps/provisioning_api/appinfo/routes.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'apps/provisioning_api/appinfo/routes.php') diff --git a/apps/provisioning_api/appinfo/routes.php b/apps/provisioning_api/appinfo/routes.php index c25dba72263..1fe9ce73108 100644 --- a/apps/provisioning_api/appinfo/routes.php +++ b/apps/provisioning_api/appinfo/routes.php @@ -44,7 +44,9 @@ API::register('delete', '/cloud/users/{userid}/subadmins', [$users, 'removeSubAd API::register('get', '/cloud/users/{userid}/subadmins', [$users, 'getUserSubAdminGroups'], 'provisioning_api', API::ADMIN_AUTH); // Groups -$groups = new \OCA\Provisioning_API\Groups(); +$groups = new \OCA\Provisioning_API\Groups( + \OC::$server->getGroupManager() +); API::register('get', '/cloud/groups', [$groups, 'getGroups'], 'provisioning_api', API::SUBADMIN_AUTH); API::register('post', '/cloud/groups', [$groups, 'addGroup'], 'provisioning_api', API::SUBADMIN_AUTH); API::register('get', '/cloud/groups/{groupid}', [$groups, 'getGroup'], 'provisioning_api', API::SUBADMIN_AUTH); -- cgit v1.2.3