Fix unauthenticated access in get_org_user_access_rbac#1756
Fix unauthenticated access in get_org_user_access_rbac#1756
Conversation
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
1d7c1d0 to
3c4e91f
Compare
|



Summary (AI generated)
20260308203344_fix_rbac_org_user_access_null_auth_gate.sqlthat updatespublic.get_org_user_access_rbacto deny anonymous callers (auth.uid() IS NULL) and useIS DISTINCT FROMin the user-id comparison.tests/rbac-permissions.test.tsto assert unauthenticated calls now fail withNO_PERMISSION_TO_VIEW_BINDINGSand authenticated self-access remains callable.Test plan (AI generated)
bun lint.bun lint:backend.bunx eslint tests/rbac-permissions.test.ts.Screenshots (AI generated)
Checklist (AI generated)
bun run lint:backend.