aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2020-05-29 01:41:06 +0200
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2020-05-29 06:48:00 +0000
commite9ccb802e822b14a480fb785759bd35d17948686 (patch)
tree4d53aec106541cfb549fd2d5fde5362a8d3f0c8f /apps/files_sharing/lib
parent89f0785c1d243fe2d07a7a8ac11a6167d5885062 (diff)
downloadnextcloud-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.php6
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);