diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2020-05-29 01:41:06 +0200 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2020-05-29 01:41:06 +0200 |
commit | 37f231333fd4d5522112a64af77b95aed20a2295 (patch) | |
tree | 1f4b722d1c87dd8b3b01f02c21d252188c6cffa6 /apps | |
parent | b638c6ee09f77e9372fad07899adbb46a6551f7d (diff) | |
download | nextcloud-server-37f231333fd4d5522112a64af77b95aed20a2295.tar.gz nextcloud-server-37f231333fd4d5522112a64af77b95aed20a2295.zip |
Fix reference to wrong class name
\OCP\IShare does not exist; the right name is \OCP\Share\IShare,
although it is already imported as IShare.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/lib/Controller/ShareAPIController.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php index 0fbd57b4713..50ba39564ba 100644 --- a/apps/files_sharing/lib/Controller/ShareAPIController.php +++ b/apps/files_sharing/lib/Controller/ShareAPIController.php @@ -1603,15 +1603,15 @@ class ShareAPIController extends OCSController { return false; } - if ($share->getShareType() === \OCP\IShare::TYPE_USER && $share->getSharedWith() === $userId) { + if ($share->getShareType() === IShare::TYPE_USER && $share->getSharedWith() === $userId) { return true; } - if ($share->getShareType() === \OCP\IShare::TYPE_GROUP && $this->groupManager->isInGroup($userId, $share->getSharedWith())) { + if ($share->getShareType() === IShare::TYPE_GROUP && $this->groupManager->isInGroup($userId, $share->getSharedWith())) { return true; } - if ($share->getShareType() === \OCP\IShare::TYPE_CIRCLE && \OC::$server->getAppManager()->isEnabledForUser('circles') + if ($share->getShareType() === IShare::TYPE_CIRCLE && \OC::$server->getAppManager()->isEnabledForUser('circles') && class_exists('\OCA\Circles\Api\v1\Circles')) { $hasCircleId = (substr($share->getSharedWith(), -1) === ']'); $shareWithStart = ($hasCircleId ? strrpos($share->getSharedWith(), '[') + 1 : 0); |