diff options
author | Robin Appelman <robin@icewind.nl> | 2024-08-05 14:51:14 +0200 |
---|---|---|
committer | Andy Scherzinger <info@andy-scherzinger.de> | 2024-09-04 23:19:04 +0200 |
commit | 88716650b3b50f5d808c74a79189ff91fb5674b3 (patch) | |
tree | e0ec290b851a0308d5290d66f49f76052cfaeb5e /lib/private | |
parent | 70651b6b3cbb1b1daa57444f2e0d7e80ec790137 (diff) | |
download | nextcloud-server-88716650b3b50f5d808c74a79189ff91fb5674b3.tar.gz nextcloud-server-88716650b3b50f5d808c74a79189ff91fb5674b3.zip |
fix: check for correct storage class when checking for link parent
fixes #39123
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/Share20/Manager.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php index ab5a1614b16..16ada8c6c7a 100644 --- a/lib/private/Share20/Manager.php +++ b/lib/private/Share20/Manager.php @@ -45,6 +45,7 @@ use OC\Files\Mount\MoveableMount; use OC\KnownUser\KnownUserService; use OC\Share20\Exception\ProviderException; use OCA\Files_Sharing\AppInfo\Application; +use OCA\Files_Sharing\SharedStorage; use OCP\EventDispatcher\IEventDispatcher; use OCP\Files\File; use OCP\Files\Folder; @@ -602,7 +603,7 @@ class Manager implements IManager { // No sense in checking if the method is not there. if (method_exists($share, 'setParent')) { $storage = $share->getNode()->getStorage(); - if ($storage->instanceOfStorage('\OCA\Files_Sharing\ISharedStorage')) { + if ($storage->instanceOfStorage(SharedStorage::class)) { /** @var \OCA\Files_Sharing\SharedStorage $storage */ $share->setParent($storage->getShareId()); } |