Fix permissions for serverless functions (#6555)

Fixes #6525

(@martmull fyi it was not related to AWS but linked to the fact that we
recently enforced passing a token to access files)
This commit is contained in:
Félix Malfait
2024-08-06 15:31:22 +02:00
committed by GitHub
parent 67c41251fb
commit 4157a67bf8
7 changed files with 107 additions and 26 deletions

View File

@ -32,7 +32,9 @@ export class FileController {
const workspaceId = (req as any)?.workspaceId;
if (!workspaceId) {
return res.status(401).send({ error: 'Unauthorized' });
return res
.status(401)
.send({ error: 'Unauthorized, missing workspaceId' });
}
try {