diff options
author | Robin Appelman <robin@icewind.nl> | 2024-08-16 17:15:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-16 17:15:28 +0200 |
commit | c8e09d158bd419167fe10d023bd42fc7c8894b82 (patch) | |
tree | 567e55c9e9bbd9bf59f8158aae234190b8f991d2 | |
parent | 62f9c26111740c9758faafa78bb4e46662867c81 (diff) | |
parent | a92171260f12bfc6a476c326d22cb28f6ab4dc2e (diff) | |
download | nextcloud-server-c8e09d158bd419167fe10d023bd42fc7c8894b82.tar.gz nextcloud-server-c8e09d158bd419167fe10d023bd42fc7c8894b82.zip |
Merge pull request #47038 from nextcloud/reshare-fed-share
fix: check for correct storage class when checking for link parent
-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()); } |