diff options
author | Robin Appelman <robin@icewind.nl> | 2024-08-08 15:55:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-08 15:55:42 +0200 |
commit | d78f7acfd752e9f0a342515e3208d51ff84f9c2c (patch) | |
tree | 30900188869f64ada4f7af1579439b662b579983 | |
parent | d94fa30f429eae7e6229c0777293699ad6c44f93 (diff) | |
parent | f741191d2569976a6dbf3f72e63a4bbd66042397 (diff) | |
download | nextcloud-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.php | 3 |
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()); } |