diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2020-05-29 01:41:06 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2020-05-29 06:48:00 +0000 |
commit | e9ccb802e822b14a480fb785759bd35d17948686 (patch) | |
tree | 4d53aec106541cfb549fd2d5fde5362a8d3f0c8f /apps/files_sharing/lib | |
parent | 89f0785c1d243fe2d07a7a8ac11a6167d5885062 (diff) | |
download | nextcloud-server-e9ccb802e822b14a480fb785759bd35d17948686.tar.gz nextcloud-server-e9ccb802e822b14a480fb785759bd35d17948686.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/files_sharing/lib')
-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); |