end_users key, Bludia applies two layers:
1. Collection permissions
Can this user’s role read / create / update / delete records in
orders at all?No → 403 permission_denied.2. Row-level security
Which
orders records can they see and change?Not visible → excluded from lists, 404 on direct access.How HTTP methods map to permissions
For update and delete, the record must also be visible through row policies.
Who is subject to authorization
Secure by default
- A user with no role can’t access any collection.
- A role with no permission row for a collection can’t access it.
- A role with no allow row policy on a collection sees only records it created.
- Unknown or broken policies fail closed (match nothing).
Typical setups
Personal data app (notes, to-dos)
Personal data app (notes, to-dos)
Role
user: read/create/update/delete on notes. No row policy needed: users see only their own notes by default.Public catalog + private orders
Public catalog + private orders
Role
customer: read on products with an allow policy field_equals status = published; read/create on orders with the default owner behavior.Team workspace
Team workspace
Role
member: read/update on projects with a relation policy, projects linked to me through members.Staff back office
Staff back office
Run your back office on your own server with a
platform key, or use a separate staff guard with role admin, full permissions, and allow policies wide enough for staff work.