1
0
Fork 0
mirror of synced 2024-06-29 19:50:26 +12:00

Remove JWT param

This commit is contained in:
Jake Barnby 2024-03-07 20:51:47 +01:00
parent f6521670d0
commit 2318fad508
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C

View file

@ -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());