mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-21 08:25:45 +00:00
fix(resources): clarify build server hosting restrictions (#10961)
This commit is contained in:
@@ -535,6 +535,17 @@ function find_destination_for_current_team(?string $uuid): StandaloneDocker|Swar
|
||||
?? SwarmDocker::ownedByCurrentTeam()->where('uuid', $uuid)->first();
|
||||
}
|
||||
|
||||
function find_resource_destination_for_current_team(?string $uuid): StandaloneDocker|SwarmDocker|null
|
||||
{
|
||||
$destination = find_destination_for_current_team($uuid);
|
||||
|
||||
if (! $destination?->server?->canHostResources()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return $destination;
|
||||
}
|
||||
|
||||
function showBoarding(): bool
|
||||
{
|
||||
if (isDev()) {
|
||||
|
||||
Reference in New Issue
Block a user