]> source.dussan.org Git - nextcloud-server.git/commitdiff
also apply the fix for the other storage types 32042/head
authorRobin Appelman <robin@icewind.nl>
Thu, 21 Apr 2022 13:00:42 +0000 (15:00 +0200)
committerRobin Appelman <robin@icewind.nl>
Thu, 21 Apr 2022 13:00:42 +0000 (15:00 +0200)
Signed-off-by: Robin Appelman <robin@icewind.nl>
apps/files_sharing/lib/SharedStorage.php

index 6caf082c248762c8bcd3f2115de7bbc8876fd0ff..8d123e7b873bb4130584b5c027288a35a821286e 100644 (file)
@@ -35,8 +35,11 @@ namespace OCA\Files_Sharing;
 use OC\Files\Cache\FailedCache;
 use OC\Files\Cache\NullWatcher;
 use OC\Files\Cache\Watcher;
+use OC\Files\ObjectStore\HomeObjectStoreStorage;
 use OC\Files\Storage\Common;
+use OC\Files\Storage\Home;
 use OCP\Files\Folder;
+use OCP\Files\IHomeStorage;
 use OCP\Files\Node;
 use OC\Files\Storage\FailedStorage;
 use OC\Files\Storage\Wrapper\PermissionsMask;
@@ -186,7 +189,14 @@ class SharedStorage extends \OC\Files\Storage\Wrapper\Jail implements ISharedSto
                if ($class === '\OC\Files\Storage\Common' || $class == Common::class) {
                        return true;
                }
-               if (in_array($class, ['\OC\Files\Storage\Home', '\OC\Files\ObjectStore\HomeObjectStoreStorage', '\OCP\Files\IHomeStorage'])) {
+               if (in_array($class, [
+                       '\OC\Files\Storage\Home',
+                       '\OC\Files\ObjectStore\HomeObjectStoreStorage',
+                       '\OCP\Files\IHomeStorage',
+                       Home::class,
+                       HomeObjectStoreStorage::class,
+                       IHomeStorage::class
+               ])) {
                        return false;
                }
                return parent::instanceOfStorage($class);