Policies
Check permissions by role
Combine the current user's role with record ownership to decide what they may do.
Edit the source, then Run. Checks start after your first Run. Ctrl/⌘ + Enter runs; Tab indents. Preview services use sample data and never contact a real service.
upstream/policies/role_permissions.vibe
Output
Click Run example to see the result.
Code checks
Run once to load the checker. Your code stays in this browser.