coolify/app/Livewire/Project
Andras Bacsai df166ac689 fix(environment): scope DeleteEnvironment lookups to current team
Scope DeleteEnvironment::mount() and delete() lookups through
Environment::ownedByCurrentTeam() so an environment_id that belongs to
another team resolves to a 404 instead of loading the foreign record.
Mark $environment_id as #[Locked] so the public Livewire property can no
longer be reassigned from the client.

Add tests/Feature/DeleteEnvironmentTeamScopingTest.php covering mount,
delete, the #[Locked] guard, and the team-scoped helper for both the
cross-team and own-team cases.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-22 12:37:48 +02:00
..
Application fix(applications): refresh pending configuration changes 2026-05-13 10:04:17 +02:00
Database fix(database): tighten Postgres init script filename handling 2026-04-20 21:26:34 +02:00
New Merge remote-tracking branch 'origin/next' into feat/railpack 2026-04-28 14:36:54 +02:00
Resource refactor: scope destination and resource lookups by current team 2026-04-19 11:55:12 +02:00
Service fix(service): block UI editing of file volumes exceeding 5 MiB 2026-04-28 22:36:56 +02:00
Shared fix(applications): refresh pending configuration changes 2026-05-13 10:04:17 +02:00
AddEmpty.php fix(models): replace forceFill/forceCreate with fill/create and add fillable guards 2026-03-31 13:45:31 +02:00
CloneMe.php fix(models): replace forceFill/forceCreate with fill/create and add fillable guards 2026-03-31 13:45:31 +02:00
DeleteEnvironment.php fix(environment): scope DeleteEnvironment lookups to current team 2026-05-22 12:37:48 +02:00
DeleteProject.php refactor: scope server and project queries to current team 2026-03-28 12:29:08 +01:00
Edit.php feat(validation): centralize validation patterns for names and descriptions 2025-08-19 12:14:48 +02:00
EnvironmentEdit.php refactor(redirect): replace redirect calls with redirectRoute helper for consistency 2025-12-26 13:29:59 +01:00
Index.php refactor: replace queries with cached versions for performance improvements 2025-12-08 13:39:33 +01:00
Show.php fix(models): replace forceFill/forceCreate with fill/create and add fillable guards 2026-03-31 13:45:31 +02:00