summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-05-29 08:46:23 +0200
committerGitHub <noreply@github.com>2020-05-29 08:46:23 +0200
commitca606cea5ccffb27d0e20e13ec069982db4fec92 (patch)
tree5566d8eb5b6f1c8c8f151ab0c9849381a9227ab8 /apps
parentebd387e89aecc3e0d96a6be98126773151e46921 (diff)
parent37f231333fd4d5522112a64af77b95aed20a2295 (diff)
downloadnextcloud-server-ca606cea5ccffb27d0e20e13ec069982db4fec92.tar.gz
nextcloud-server-ca606cea5ccffb27d0e20e13ec069982db4fec92.zip
Merge pull request #21146 from nextcloud/fix-reference-to-wrong-class-name
Fix reference to wrong class name
Diffstat (limited to 'apps')
-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);