diff options
author | Robin Appelman <robin@icewind.nl> | 2024-08-05 14:51:14 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2024-08-16 13:13:31 +0200 |
commit | a92171260f12bfc6a476c326d22cb28f6ab4dc2e (patch) | |
tree | 2ebe2850cd1df6a391cc9e152ae1378363a6bf00 | |
parent | 13a72d0f0e8f9ba12df2a7f2e0f28a02f4b9ce4a (diff) | |
download | nextcloud-server-a92171260f12bfc6a476c326d22cb28f6ab4dc2e.tar.gz nextcloud-server-a92171260f12bfc6a476c326d22cb28f6ab4dc2e.zip |
fix: check for correct storage class when checking for link parent
fixes #39123
Signed-off-by: Robin Appelman <robin@icewind.nl>
-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 e76f4586dfd..55e10602e72 100644 --- a/lib/private/Share20/Manager.php +++ b/lib/private/Share20/Manager.php @@ -11,6 +11,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; @@ -570,7 +571,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()); } |