aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/lib
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-06-15 08:23:04 +0200
committerJulius Härtl <jus@bitgrid.net>2020-06-15 08:28:12 +0200
commit11329dcb427714c2f6f166d15922300531431ff4 (patch)
treef48bdd2b20400ae5b962c0efa83380ffb048fad2 /apps/workflowengine/lib
parent5339d6df0218b430c40eed2fb794895adb1ebf83 (diff)
downloadnextcloud-server-11329dcb427714c2f6f166d15922300531431ff4.tar.gz
nextcloud-server-11329dcb427714c2f6f166d15922300531431ff4.zip
Flow: Include root folder for shared storages when fetching system tags
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/workflowengine/lib')
-rw-r--r--apps/workflowengine/lib/Check/FileSystemTags.php3
1 files changed, 2 insertions, 1 deletions
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) {