mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 09:13:19 -04:00
fix(OCS-API): No csrf required for /tasks/taskId/file/fileId
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
parent
19a0aaeb5e
commit
f3a88f04ec
1 changed files with 1 additions and 0 deletions
|
|
@ -237,6 +237,7 @@ class TaskProcessingApiController extends \OCP\AppFramework\OCSController {
|
|||
* 404: Task or file not found
|
||||
*/
|
||||
#[NoAdminRequired]
|
||||
#[Http\Attribute\NoCSRFRequired]
|
||||
#[ApiRoute(verb: 'GET', url: '/tasks/{taskId}/file/{fileId}', root: '/taskprocessing')]
|
||||
public function getFileContents(int $taskId, int $fileId): Http\DataDownloadResponse|DataResponse {
|
||||
try {
|
||||
|
|
|
|||
Loading…
Reference in a new issue