Skip to content

Commit 75095e1

Browse files
authored
fix(api-gateway): data scope check (#9264)
1 parent 57932fc commit 75095e1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/cubejs-api-gateway/src/gateway.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,7 @@ class ApiGateway {
385385
res.setHeader('Transfer-Encoding', 'chunked');
386386

387387
try {
388+
await this.assertApiScope('data', req.context?.securityContext);
388389
await this.sqlServer.execSql(req.body.query, res, req.context?.securityContext);
389390
} catch (e: any) {
390391
this.handleError({

0 commit comments

Comments
 (0)