trypost/tests
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
..
Feature fix(members): block self role-change/removal and lock role rules with tests 2026-06-22 14:41:11 -03:00
fixtures test(automations): extract inline feed XML into shared fixtures 2026-06-16 11:06:46 -03:00
Unit fix(members): block self role-change/removal and lock role rules with tests 2026-06-22 14:41:11 -03:00
CreatesApplication.php feat: Establish a dedicated testing environment with .env.testing, CreatesApplication trait, and Language model factory, integrating language selection into user profile tests and adjusting the languages table migration. 2026-01-18 19:56:04 -03:00
Pest.php refactor: address code review for per-workspace pricing 2026-06-21 21:28:47 -03:00
TestCase.php refactor: move URL validation to the request layer with active_url 2026-05-04 14:35:28 -03:00