summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2024-08-08 15:55:42 +0200
committerGitHub <noreply@github.com>2024-08-08 15:55:42 +0200
commitd78f7acfd752e9f0a342515e3208d51ff84f9c2c (patch)
tree30900188869f64ada4f7af1579439b662b579983
parentd94fa30f429eae7e6229c0777293699ad6c44f93 (diff)
parentf741191d2569976a6dbf3f72e63a4bbd66042397 (diff)
downloadnextcloud-server-d78f7acfd752e9f0a342515e3208d51ff84f9c2c.tar.gz
nextcloud-server-d78f7acfd752e9f0a342515e3208d51ff84f9c2c.zip
Merge pull request #47081 from nextcloud/backport/47038/stable28
[stable28] fix: check for correct storage class when checking for link parent
-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());
}