diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php index 030e751491e02..f802284131924 100644 --- a/apps/files_sharing/lib/Controller/ShareAPIController.php +++ b/apps/files_sharing/lib/Controller/ShareAPIController.php @@ -1523,7 +1523,8 @@ protected function canAccessShare(\OCP\Share\IShare $share, bool $checkGroups = $sharedWith = substr($share->getSharedWith(), $shareWithStart, $shareWithLength); } try { - $member = Circles::getMember($sharedWith, $this->userId, 1); + + $member = \OCA\Circles\Api\v1\Circles::getMember($sharedWith, $this->userId, 1); if ($member->getLevel() >= 1) { return true; }