]> source.dussan.org Git - nextcloud-server.git/commitdiff
Flow: Include root folder for shared storages when fetching system tags 21404/head
authorJulius Härtl <jus@bitgrid.net>
Mon, 15 Jun 2020 06:23:04 +0000 (08:23 +0200)
committerJulius Härtl <jus@bitgrid.net>
Mon, 15 Jun 2020 06:28:12 +0000 (08:28 +0200)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
apps/workflowengine/lib/Check/FileSystemTags.php

index 845fb3ee718579a57b04e02595ac9c6ed45fd6e2..530509608a17a0faf57c2e33f0c82c218c244f3a 100644 (file)
@@ -21,6 +21,7 @@
 
 namespace OCA\WorkflowEngine\Check;
 
+use OCA\Files_Sharing\SharedStorage;
 use OCA\WorkflowEngine\Entity\File;
 use OCP\Files\Cache\ICache;
 use OCP\Files\IHomeStorage;
@@ -95,7 +96,7 @@ class FileSystemTags implements ICheck, IFileCheck {
         */
        protected function getSystemTags() {
                $cache = $this->storage->getCache();
-               $fileIds = $this->getFileIds($cache, $this->path, !$this->storage->instanceOfStorage(IHomeStorage::class));
+               $fileIds = $this->getFileIds($cache, $this->path, !$this->storage->instanceOfStorage(IHomeStorage::class) || $this->storage->instanceOfStorage(SharedStorage::class));
 
                $systemTags = [];
                foreach ($fileIds as $i => $fileId) {