Browse Source

Flow: Include root folder for shared storages when fetching system tags

Signed-off-by: Julius Härtl <jus@bitgrid.net>
tags/v20.0.0beta1
Julius Härtl 4 years ago
parent
commit
11329dcb42
No account linked to committer's email address
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      apps/workflowengine/lib/Check/FileSystemTags.php

+ 2
- 1
apps/workflowengine/lib/Check/FileSystemTags.php View 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) {

Loading…
Cancel
Save