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

This commit is contained in:
Andras Bacsai authored and GitHub committed 2026-03-12 13:26:08 +01:00
commit 8b8a09ad39
2 files changed
+95 -1

No files matched your search

@@ -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);
}