summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-06-15 16:31:50 +0200
committerGitHub <noreply@github.com>2020-06-15 16:31:50 +0200
commit2d262a1a032d5e603905fb3aba7744ef0a98cf86 (patch)
tree871feb3c2b87e8be6aa364b6000be7ca12c9eda9
parent552b1d6da50c3b4067ba83a6dad4aa4817ee07c8 (diff)
parent11329dcb427714c2f6f166d15922300531431ff4 (diff)
downloadnextcloud-server-2d262a1a032d5e603905fb3aba7744ef0a98cf86.tar.gz
nextcloud-server-2d262a1a032d5e603905fb3aba7744ef0a98cf86.zip
Merge pull request #21404 from nextcloud/bugfix/noid/flow-tag-parent-share
Flow: Include root folder for shared storages when fetching system tags
-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) {