trypost/app/Http
Paulo Castellano 1c9ab462d0 feat(permissions): viewers review drafts in a read-only editor; lock /accounts to admins
Viewers are typically the client: they need to open a draft in the editor
to use the comments tab, but must not change anything.

- post editor (edit) now authorizes view, so viewers can open it; the
  composer + schedule tab render read-only and the comments tab stays
  interactive (defaults to the comments tab for viewers)
- all mutations stay member+ (update/delete) — the autosave/save/publish/
  schedule/delete affordances are hidden and the PUT is still 403 for
  viewers; SyncPostPlatforms only runs for users who can update
- drafts route to the editor for everyone again (reverts the read-only
  Show detour); Show stays the published-post view
- /accounts now authorizes manageAccounts (admin+), so viewers and members
  get 403; the Connections sidebar item is admin+ only and the connect/
  disconnect grid is reverted to main (no per-button gating needed)

Tests: draft→editor redirect for every member, viewer can open the editor,
viewer cannot save, and only admins+ can open /accounts.
2026-06-22 17:04:09 -03:00
..
Controllers feat(permissions): viewers review drafts in a read-only editor; lock /accounts to admins 2026-06-22 17:04:09 -03:00
Middleware feat: per-workspace pricing, onboarding, and billing overhaul 2026-06-21 20:40:03 -03:00
Requests fix(members): preserve invited role on accept and surface viewer in role menu 2026-06-22 14:24:19 -03:00
Resources feat(automations): multi-format RSS/Atom feeds with dynamic variables 2026-06-16 10:56:08 -03:00