trypost/tests/Feature/Settings
Paulo Castellano 1660187067 fix(profile): member delete must not destroy the shared account (closes #50)
Members joining via workspace invite share the owner's account_id.
ProfileController::destroy was unconditionally calling $account->delete()
in every profile-deletion path, so any member could wipe the whole
organization (cascade: workspaces, posts, social accounts, signatures,
labels) just by clicking Delete on their own profile.

Gate the account/subscription teardown behind isAccountOwner(). For
members the path now only detaches them from workspaces and deletes
the user row — owner's data is untouched.

Tested in both SELF_HOSTED=true and false.
2026-05-19 12:20:49 -03:00
..
AuthenticationTest.php feat: implement consolidated authentication settings including session management and social provider integration 2026-05-03 17:42:44 -03:00
NotificationPreferenceTest.php refactor: reorganize settings UI, migrate post templates to a file-based registry, and remove legacy video generation features 2026-05-03 13:44:13 -03:00
ProfileUpdateTest.php fix(profile): member delete must not destroy the shared account (closes #50) 2026-05-19 12:20:49 -03:00
SettingsHubTest.php feat: implement settings hub dashboard and update usage metrics to support unlimited plans 2026-05-03 15:54:26 -03:00