mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-12 16:22:20 +00:00
chore: prepare for PR
This commit is contained in:
@@ -127,6 +127,10 @@ class DeployController extends Controller
|
||||
if (! $deployment) {
|
||||
return response()->json(['message' => 'Deployment not found.'], 404);
|
||||
}
|
||||
$application = $deployment->application;
|
||||
if (! $application || data_get($application->team(), 'id') !== $teamId) {
|
||||
return response()->json(['message' => 'Deployment not found.'], 404);
|
||||
}
|
||||
|
||||
return response()->json($this->removeSensitiveData($deployment));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user