refactor: Remove unnecessary code in Terminal.php
This commit is contained in:
parent
d373815f98
commit
07ed726c88
1 changed files with 0 additions and 7 deletions
|
|
@ -14,13 +14,6 @@ public function sendTerminalCommand($isContainer, $identifier, $serverUuid)
|
|||
|
||||
$server = Server::ownedByCurrentTeam()->whereUuid($serverUuid)->firstOrFail();
|
||||
|
||||
// if (auth()->user()) {
|
||||
// $teams = auth()->user()->teams->pluck('id');
|
||||
// if (! $teams->contains($server->team_id) && ! $teams->contains(0)) {
|
||||
// throw new \Exception('User is not part of the team that owns this server');
|
||||
// }
|
||||
// }
|
||||
|
||||
if ($isContainer) {
|
||||
$status = getContainerStatus($server, $identifier);
|
||||
if ($status !== 'running') {
|
||||
|
|
|
|||
Loading…
Reference in a new issue