summaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api/appinfo
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2016-01-06 00:03:08 +0100
committerRoeland Jago Douma <rullzer@owncloud.com>2016-01-06 11:40:22 +0100
commit88c7face07722d03806c5b89a41a3ab90bbd9718 (patch)
treee95003decc4033538a188050b8a2cf7cf50db34c /apps/provisioning_api/appinfo
parentc77917f48c6c6d7110c7380a398e25beb906f50f (diff)
downloadnextcloud-server-88c7face07722d03806c5b89a41a3ab90bbd9718.tar.gz
nextcloud-server-88c7face07722d03806c5b89a41a3ab90bbd9718.zip
Inject OCSClient
Fixes https://github.com/owncloud/core/issues/21451
Diffstat (limited to 'apps/provisioning_api/appinfo')
-rw-r--r--apps/provisioning_api/appinfo/routes.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/provisioning_api/appinfo/routes.php b/apps/provisioning_api/appinfo/routes.php
index 22a923f5c20..1b9328d608a 100644
--- a/apps/provisioning_api/appinfo/routes.php
+++ b/apps/provisioning_api/appinfo/routes.php
@@ -62,7 +62,8 @@ API::register('get', '/cloud/groups/{groupid}/subadmins', [$groups, 'getSubAdmin
// Apps
$apps = new \OCA\Provisioning_API\Apps(
- \OC::$server->getAppManager()
+ \OC::$server->getAppManager(),
+ \OC::$server->getOcsClient()
);
API::register('get', '/cloud/apps', [$apps, 'getApps'], 'provisioning_api', API::ADMIN_AUTH);
API::register('get', '/cloud/apps/{appid}', [$apps, 'getAppInfo'], 'provisioning_api', API::ADMIN_AUTH);