Merge pull request #21404 from nextcloud/bugfix/noid/flow-tag-parent-share
Flow: Include root folder for shared storages when fetching system tags
This commit is contained in:
commit
2d262a1a03
|
@ -21,6 +21,7 @@
|
||||||
|
|
||||||
namespace OCA\WorkflowEngine\Check;
|
namespace OCA\WorkflowEngine\Check;
|
||||||
|
|
||||||
|
use OCA\Files_Sharing\SharedStorage;
|
||||||
use OCA\WorkflowEngine\Entity\File;
|
use OCA\WorkflowEngine\Entity\File;
|
||||||
use OCP\Files\Cache\ICache;
|
use OCP\Files\Cache\ICache;
|
||||||
use OCP\Files\IHomeStorage;
|
use OCP\Files\IHomeStorage;
|
||||||
|
@ -95,7 +96,7 @@ class FileSystemTags implements ICheck, IFileCheck {
|
||||||
*/
|
*/
|
||||||
protected function getSystemTags() {
|
protected function getSystemTags() {
|
||||||
$cache = $this->storage->getCache();
|
$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 = [];
|
$systemTags = [];
|
||||||
foreach ($fileIds as $i => $fileId) {
|
foreach ($fileIds as $i => $fileId) {
|
||||||
|
|
Loading…
Reference in New Issue