Skip to content

Commit ca606ce

Browse files
authored
Merge pull request #21146 from nextcloud/fix-reference-to-wrong-class-name
Fix reference to wrong class name
2 parents ebd387e + 37f2313 commit ca606ce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/files_sharing/lib/Controller/ShareAPIController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1603,15 +1603,15 @@ private function shareProviderResharingRights(string $userId, IShare $share, $no
16031603
return false;
16041604
}
16051605

1606-
if ($share->getShareType() === \OCP\IShare::TYPE_USER && $share->getSharedWith() === $userId) {
1606+
if ($share->getShareType() === IShare::TYPE_USER && $share->getSharedWith() === $userId) {
16071607
return true;
16081608
}
16091609

1610-
if ($share->getShareType() === \OCP\IShare::TYPE_GROUP && $this->groupManager->isInGroup($userId, $share->getSharedWith())) {
1610+
if ($share->getShareType() === IShare::TYPE_GROUP && $this->groupManager->isInGroup($userId, $share->getSharedWith())) {
16111611
return true;
16121612
}
16131613

1614-
if ($share->getShareType() === \OCP\IShare::TYPE_CIRCLE && \OC::$server->getAppManager()->isEnabledForUser('circles')
1614+
if ($share->getShareType() === IShare::TYPE_CIRCLE && \OC::$server->getAppManager()->isEnabledForUser('circles')
16151615
&& class_exists('\OCA\Circles\Api\v1\Circles')) {
16161616
$hasCircleId = (substr($share->getSharedWith(), -1) === ']');
16171617
$shareWithStart = ($hasCircleId ? strrpos($share->getSharedWith(), '[') + 1 : 0);

0 commit comments

Comments
 (0)