mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-18 12:14:07 +00:00
refactor(execute-container-command): simplify connection logic and improve terminal availability checks
This commit is contained in:
1 parent
64dd648b3f
commit
d1d899c0cf
3 files changed
+70
-265
No files matched your search
@@ -44,7 +44,7 @@ class Terminal extends Component
|
||||
public function sendTerminalCommand($isContainer, $identifier, $serverUuid)
|
||||
{
|
||||
$server = Server::ownedByCurrentTeam()->whereUuid($serverUuid)->firstOrFail();
|
||||
if (! $server->isTerminalEnabled()) {
|
||||
if (! $server->isTerminalEnabled() || $server->isForceDisabled()) {
|
||||
throw new \RuntimeException('Terminal access is disabled on this server.');
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user