refactor(execute-container-command): simplify connection logic and improve terminal availability checks
This commit is contained in:
@@ -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