1
0
Fork 0
mirror of synced 2024-07-04 06:00:53 +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('dbForProject')
->inject('mode') ->inject('mode')
->inject('deviceForFiles') ->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)); $bucket = Authorization::skip(fn () => $dbForProject->getDocument('buckets', $bucketId));
$isAPIKey = Auth::isAppUser(Authorization::getRoles()); $isAPIKey = Auth::isAppUser(Authorization::getRoles());