PR #252 · pramaan-io/pramaan-app · merged 2026-06-08
A member logs in. The Clients tab glows. The Create button shines. Neither is theirs to use.
Record-level access UI
Two doors left wide open.
The fix — Hide what you can't reach, 404 what you shouldn't see, guard every door.
sequenceDiagram autonumber participant member as Member participant rail as Nav rail participant guard as Route guard participant gw as Gateway member->>rail: opens app rail->>rail: hides Clients directory member-->>guard: bookmark /clients/abc guard->>guard: assertCanBrowseClients + fetch guard->>member: orNotFound() clean 404