Skip to content

Commit 07ed726

Browse files
committed
refactor: Remove unnecessary code in Terminal.php
1 parent d373815 commit 07ed726

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

app/Livewire/Project/Shared/Terminal.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,6 @@ public function sendTerminalCommand($isContainer, $identifier, $serverUuid)
1414

1515
$server = Server::ownedByCurrentTeam()->whereUuid($serverUuid)->firstOrFail();
1616

17-
// if (auth()->user()) {
18-
// $teams = auth()->user()->teams->pluck('id');
19-
// if (! $teams->contains($server->team_id) && ! $teams->contains(0)) {
20-
// throw new \Exception('User is not part of the team that owns this server');
21-
// }
22-
// }
23-
2417
if ($isContainer) {
2518
$status = getContainerStatus($server, $identifier);
2619
if ($status !== 'running') {

0 commit comments

Comments
 (0)