Skip to content

Commit 746d336

Browse files
authored
docs: fix cubeCloud example for contextToRoles
1 parent 6caf7cb commit 746d336

File tree

1 file changed

+2
-2
lines changed
  • docs/pages/product/configuration/reference

1 file changed

+2
-2
lines changed

docs/pages/product/configuration/reference/config.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1401,7 +1401,7 @@ def context_to_roles(ctx: dict) -> list[str]:
14011401

14021402
module.exports = {
14031403
contextToRoles: ({ securityContext }) => {
1404-
const cloud_ctx = securityContext.cloud || { roles: [] }
1404+
const cloud_ctx = securityContext.cubeCloud || { roles: [] }
14051405
return cloud_ctx.roles || []
14061406
}
14071407
}
@@ -1542,4 +1542,4 @@ If not defined, Cube will lookup for environment variable
15421542
[ref-ldap-integration]: /product/workspace/sso#ldap-integration
15431543
[ref-dax-api]: /product/apis-integrations/dax-api
15441544
[ref-mdx-api]: /product/apis-integrations/mdx-api
1545-
[ref-ntlm]: /product/auth/methods/ntlm
1545+
[ref-ntlm]: /product/auth/methods/ntlm

0 commit comments

Comments
 (0)