Skip to content

Commit d78f7ac

Browse files
authored
Merge pull request #47081 from nextcloud/backport/47038/stable28
[stable28] fix: check for correct storage class when checking for link parent
2 parents d94fa30 + f741191 commit d78f7ac

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/private/Share20/Manager.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
use OC\KnownUser\KnownUserService;
4646
use OC\Share20\Exception\ProviderException;
4747
use OCA\Files_Sharing\AppInfo\Application;
48+
use OCA\Files_Sharing\SharedStorage;
4849
use OCP\EventDispatcher\IEventDispatcher;
4950
use OCP\Files\File;
5051
use OCP\Files\Folder;
@@ -594,7 +595,7 @@ protected function setLinkParent(IShare $share) {
594595
// No sense in checking if the method is not there.
595596
if (method_exists($share, 'setParent')) {
596597
$storage = $share->getNode()->getStorage();
597-
if ($storage->instanceOfStorage('\OCA\Files_Sharing\ISharedStorage')) {
598+
if ($storage->instanceOfStorage(SharedStorage::class)) {
598599
/** @var \OCA\Files_Sharing\SharedStorage $storage */
599600
$share->setParent($storage->getShareId());
600601
}

0 commit comments

Comments
 (0)