You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Schema/cube.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -382,6 +382,8 @@ cube(`Events`, {
382
382
383
383
`USER_CONTEXT` is a user security object that is passed by the Cube.js Client.
384
384
385
+
Please see [Security Context section](security#security-context) on how to set `USER_CONTEXT` value.
386
+
385
387
User context is suitable for the row level security implementation.
386
388
For example, if you have an `orders` table that contains an `email` field you can restrict all queries to render results that belong only to the current user as follows:
0 commit comments