From 2318fad50820148070d80c944cc3861eea3f7b83 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Thu, 7 Mar 2024 20:51:47 +0100 Subject: [PATCH] Remove JWT param --- app/controllers/api/storage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/storage.php b/app/controllers/api/storage.php index 38cc9ad1e4..0874b366a7 100644 --- a/app/controllers/api/storage.php +++ b/app/controllers/api/storage.php @@ -1175,7 +1175,7 @@ App::get('/v1/storage/buckets/:bucketId/files/:fileId/view') ->inject('dbForProject') ->inject('mode') ->inject('deviceForFiles') - ->action(function (string $bucketId, string $fileId, string $jwt, Response $response, Request $request, Database $dbForProject, string $mode, Device $deviceForFiles) { + ->action(function (string $bucketId, string $fileId, Response $response, Request $request, Database $dbForProject, string $mode, Device $deviceForFiles) { $bucket = Authorization::skip(fn () => $dbForProject->getDocument('buckets', $bucketId)); $isAPIKey = Auth::isAppUser(Authorization::getRoles());