Skip to content

Commit 7cda040

Browse files
committed
fix: check for correct storage class when checking for link parent
fixes #39123 Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent c7e0d90 commit 7cda040

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/private/Share20/Manager.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use OC\KnownUser\KnownUserService;
1212
use OC\Share20\Exception\ProviderException;
1313
use OCA\Files_Sharing\AppInfo\Application;
14+
use OCA\Files_Sharing\SharedStorage;
1415
use OCP\EventDispatcher\IEventDispatcher;
1516
use OCP\Files\File;
1617
use OCP\Files\Folder;
@@ -570,7 +571,7 @@ protected function setLinkParent(IShare $share) {
570571
// No sense in checking if the method is not there.
571572
if (method_exists($share, 'setParent')) {
572573
$storage = $share->getNode()->getStorage();
573-
if ($storage->instanceOfStorage('\OCA\Files_Sharing\ISharedStorage')) {
574+
if ($storage->instanceOfStorage(SharedStorage::class)) {
574575
/** @var \OCA\Files_Sharing\SharedStorage $storage */
575576
$share->setParent($storage->getShareId());
576577
}

0 commit comments

Comments
 (0)