diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2024-09-05 11:43:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-05 11:43:25 +0200 |
commit | 3fbca06e199494a876e554b0a758db8640c29157 (patch) | |
tree | 7e3d6c3dd4fd0d1ed2fdc0325dc927f90ea271b8 /lib | |
parent | 35085228dc14afa08ea99a13b3f4d95ca75dbcf2 (diff) | |
parent | 88716650b3b50f5d808c74a79189ff91fb5674b3 (diff) | |
download | nextcloud-server-3fbca06e199494a876e554b0a758db8640c29157.tar.gz nextcloud-server-3fbca06e199494a876e554b0a758db8640c29157.zip |
Merge pull request #47284 from nextcloud/backport/47038/stable29
[stable29] fix: check for correct storage class when checking for link parent
Diffstat (limited to 'lib')
-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()); } |