fix(api): cast teamId to int in deployment authorization check (#8931)

This commit is contained in:
Andras Bacsai
2026-03-12 13:26:08 +01:00
committed by GitHub
2 changed files with 95 additions and 1 deletions
@@ -128,7 +128,7 @@ class DeployController extends Controller
return response()->json(['message' => 'Deployment not found.'], 404);
}
$application = $deployment->application;
if (! $application || data_get($application->team(), 'id') !== $teamId) {
if (! $application || data_get($application->team(), 'id') !== (int) $teamId) {
return response()->json(['message' => 'Deployment not found.'], 404);
}