summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAndy Scherzinger <info@andy-scherzinger.de>2024-08-21 21:59:22 +0200
committerGitHub <noreply@github.com>2024-08-21 21:59:22 +0200
commite87b5599394f08b713df215ee81ce483ed977237 (patch)
tree14c97360cb73d3a4cada79bff0b20810189be58c /lib
parentcb0f8566f4326f9770b0a8db044fe875d2b74b60 (diff)
parent9791fa278f947b2999fa65910a82874fa1890ca0 (diff)
downloadnextcloud-server-e87b5599394f08b713df215ee81ce483ed977237.tar.gz
nextcloud-server-e87b5599394f08b713df215ee81ce483ed977237.zip
Merge pull request #47283 from nextcloud/backport/47038/stable30
[stable30] fix: check for correct storage class when checking for link parent
Diffstat (limited to 'lib')
-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 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());
}