refactor: Remove unnecessary code in Terminal.php
This commit is contained in:
		@@ -14,13 +14,6 @@ class Terminal extends Component
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        $server = Server::ownedByCurrentTeam()->whereUuid($serverUuid)->firstOrFail();
 | 
					        $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) {
 | 
					        if ($isContainer) {
 | 
				
			||||||
            $status = getContainerStatus($server, $identifier);
 | 
					            $status = getContainerStatus($server, $identifier);
 | 
				
			||||||
            if ($status !== 'running') {
 | 
					            if ($status !== 'running') {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user