From: Julius Härtl Date: Mon, 15 Jun 2020 06:23:04 +0000 (+0200) Subject: Flow: Include root folder for shared storages when fetching system tags X-Git-Tag: v20.0.0beta1~417^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F21404%2Fhead;p=nextcloud-server.git Flow: Include root folder for shared storages when fetching system tags Signed-off-by: Julius Härtl --- diff --git a/apps/workflowengine/lib/Check/FileSystemTags.php b/apps/workflowengine/lib/Check/FileSystemTags.php index 845fb3ee718..530509608a1 100644 --- a/apps/workflowengine/lib/Check/FileSystemTags.php +++ b/apps/workflowengine/lib/Check/FileSystemTags.php @@ -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) {