Commit 55f49aa
committed
docs(security): correct the resolvable current_user.* RLS variables
The objectql security reference listed `current_user.role`/`current_user.department`
"plus any custom user field" as available RLS variables — but the compiler resolves
only unique identifiers + pre-resolved membership sets. Corrected to the actual set
(`id`, `email`, `organization_id` for equality; `org_user_ids`/`roles`/rlsMembership
for IN) and documents that display `name`/arbitrary fields are intentionally not
resolvable (collision = access leak). Reflects the new `current_user.email` support.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XVdnfUAx85amkerym26vdx1 parent ded15c3 commit 55f49aa
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
| 132 | + | |
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| |||
0 commit comments