Skip to content

Commit

Permalink
Add scope-check to file upload, download
Browse files Browse the repository at this point in the history
  • Loading branch information
lllHuber committed Sep 4, 2024
1 parent 2ab7b68 commit 253f4f5
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ export class ContentScopeService {
return GqlExecutionContext.create(context).getArgs();
} else {
const request = context.switchToHttp().getRequest();
if (request.query?.scope) {
request.query.scope = JSON.parse(request.query.scope);
}
return { ...request.params, ...request.query };
}
}
Expand Down

0 comments on commit 253f4f5

Please sign in to comment.