Skip to content

Commit 983d574

Browse files
authored
docs: Fix python cubeCloud example reference
1 parent eace9db commit 983d574

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1393,7 +1393,7 @@ from cube import config
13931393

13941394
@config('context_to_roles')
13951395
def context_to_roles(ctx: dict) -> list[str]:
1396-
cloud_ctx = ctx['securityContext'].get('cloud', {'roles': []})
1396+
cloud_ctx = ctx['securityContext'].get('cubeCloud', {'roles': []})
13971397
return cloud_ctx.get('roles', [])
13981398
```
13991399

0 commit comments

Comments
 (0)