diff options
-rw-r--r-- | core/Controller/TaskProcessingApiController.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/Controller/TaskProcessingApiController.php b/core/Controller/TaskProcessingApiController.php index c8d3c60df36..925d4751383 100644 --- a/core/Controller/TaskProcessingApiController.php +++ b/core/Controller/TaskProcessingApiController.php @@ -349,6 +349,9 @@ class TaskProcessingApiController extends \OCP\AppFramework\OCSController { if (!in_array($fileId, $ids)) { return new DataResponse(['message' => $this->l->t('Not found')], Http::STATUS_NOT_FOUND); } + if ($task->getUserId() !== null) { + \OC_Util::setupFS($task->getUserId()); + } $node = $this->rootFolder->getFirstNodeById($fileId); if ($node === null) { $node = $this->rootFolder->getFirstNodeByIdInPath($fileId, '/' . $this->rootFolder->getAppDataDirectoryName() . '/'); |