Skip to content

Commit b2da950

Browse files
authored
fix(api-gateway): passing defaultApiScope env to the contextToApiScopesFn (#6485)
1 parent fff56d4 commit b2da950

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2009,7 +2009,7 @@ class ApiGateway {
20092009
const scopes =
20102010
await this.contextToApiScopesFn(
20112011
securityContext || {},
2012-
await this.contextToApiScopesDefFn(),
2012+
getEnv('defaultApiScope') || await this.contextToApiScopesDefFn(),
20132013
);
20142014
const permited = scopes.indexOf(scope) >= 0;
20152015
if (!permited) {

0 commit comments

Comments
 (0)