]> source.dussan.org Git - nextcloud-server.git/commitdiff
wrong call 5484/head
authorMaxence Lange <maxence@nextcloud.com>
Tue, 20 Jun 2017 12:05:20 +0000 (11:05 -0100)
committerMorris Jobke <hey@morrisjobke.de>
Tue, 11 Jul 2017 18:21:06 +0000 (20:21 +0200)
Signed-off-by: Maxence Lange <maxence@nextcloud.com>
apps/files_sharing/lib/Controller/ShareAPIController.php
apps/files_sharing/lib/Controller/ShareesAPIController.php

index d0651edf89ab1f0f661e305eedc97b5df180ce99..15be82e9572d1e421652e6e936909eaf83f38950 100644 (file)
@@ -450,7 +450,7 @@ class ShareAPIController extends OCSController {
                        }
                        $share->setSharedWith($shareWith);
                } else if ($shareType === \OCP\Share::SHARE_TYPE_CIRCLE) {
-                       if (!\OCP\App::isEnabledForUser('circles') || !class_exists('\OCA\Circles\ShareByCircleProvider')) {
+                       if (!\OC::$server->getAppManager()->isEnabledForUser('circles') || !class_exists('\OCA\Circles\ShareByCircleProvider')) {
                                throw new OCSNotFoundException($this->l->t('You cannot share to a Circle if the app is not enabled'));
                        }
 
index 1b9dffaa2c6a5606de7aba41ad66122a88c005f1..3e0c01b342e1aec4d750aa66dfafba527c0f4faf 100644 (file)
@@ -472,7 +472,7 @@ class ShareesAPIController extends OCSController {
                        $shareTypes[] = Share::SHARE_TYPE_EMAIL;
                }
 
-               if (\OCP\App::isEnabledForUser('circles') && class_exists('\OCA\Circles\ShareByCircleProvider')) {
+               if (\OC::$server->getAppManager()->isEnabledForUser('circles') && class_exists('\OCA\Circles\ShareByCircleProvider')) {
                        $shareTypes[] = Share::SHARE_TYPE_CIRCLE;
                }