mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
fix(TaskProcessing): Set up fs in getFileContentsInternal
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
parent
a27f11e7ac
commit
25f558d004
1 changed files with 3 additions and 0 deletions
|
|
@ -351,6 +351,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() . '/');
|
||||
|
|
|
|||
Loading…
Reference in a new issue