trypost/app/Http
Paulo Castellano f572341e36 fix(members): block self role-change/removal and lock role rules with tests
The remove/role-change guards only protected the account owner, so a non-owner
admin could change their own role or remove themselves via a crafted request
(the UI hides it, but the backend didn't). Add an explicit self-guard to both
updateRole and removeMember.

Lock the whole role system with tests: accept assigns the exact invited role
(viewer/admin/member), invite requires and persists a role, updateRole supports
viewer and blocks self/owner/invalid, removeMember blocks self/owner, and a
viewer is read-only (view yes; create post / manage team / invite no).
2026-06-22 14:41:11 -03:00
..
Controllers fix(members): block self role-change/removal and lock role rules with tests 2026-06-22 14:41:11 -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