Skip to content

Commit

Permalink
fix(api-gateway): data scope check (#9264)
Browse files Browse the repository at this point in the history
  • Loading branch information
vasilev-alex authored Feb 25, 2025
1 parent 57932fc commit 75095e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/cubejs-api-gateway/src/gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ class ApiGateway {
res.setHeader('Transfer-Encoding', 'chunked');

try {
await this.assertApiScope('data', req.context?.securityContext);
await this.sqlServer.execSql(req.body.query, res, req.context?.securityContext);
} catch (e: any) {
this.handleError({
Expand Down

0 comments on commit 75095e1

Please sign in to comment.