summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2024-08-05 14:51:14 +0200
committerAndy Scherzinger <info@andy-scherzinger.de>2024-08-07 20:56:18 +0200
commitf741191d2569976a6dbf3f72e63a4bbd66042397 (patch)
treee8daa9b9bb8d86e69e47a3896d7448aa7c7d7140
parente056f5c579da3931986529bed22c0e1fd5b62759 (diff)
downloadnextcloud-server-f741191d2569976a6dbf3f72e63a4bbd66042397.tar.gz
nextcloud-server-f741191d2569976a6dbf3f72e63a4bbd66042397.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.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php
index af31226cf08..d11f2db338f 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;
@@ -594,7 +595,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());
}