trypost/app/Http/Controllers
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
..
Api Make AspectRatio the single source for crop math; fill test gaps 2026-06-10 15:52:41 -03:00
App fix(members): block self role-change/removal and lock role rules with tests 2026-06-22 14:41:11 -03:00
Auth fix(members): preserve invited role on accept and surface viewer in role menu 2026-06-22 14:24:19 -03:00
Webhooks Group Telegram service classes under Services/Social/Telegram 2026-06-14 13:32:03 -03:00
Controller.php refactor: settings redesign, Spanish translations, language system, strict_types 2026-03-30 00:20:43 -03:00