refactor: scope server and project queries to current team (#9230)

This commit is contained in:
Andras Bacsai
2026-03-29 20:28:21 +02:00
committed by GitHub
13 changed files with 208 additions and 23 deletions
@@ -250,7 +250,7 @@ class DeployController extends Controller
]);
// Get the server
$server = Server::find($build_server_id);
$server = Server::whereTeamId($teamId)->find($build_server_id);
if ($server) {
// Add cancellation log entry