feat(terminal-access): implement terminal access control for servers and containers, including UI updates and backend logic
This commit is contained in:
@@ -153,7 +153,7 @@ Route::middleware(['auth', 'verified'])->group(function () {
|
||||
Route::post('/terminal/auth/ips', function () {
|
||||
if (auth()->check()) {
|
||||
$team = auth()->user()->currentTeam();
|
||||
$ipAddresses = $team->servers()->pluck('ip')->toArray();
|
||||
$ipAddresses = $team->servers->where('settings.is_terminal_enabled', true)->pluck('ip')->toArray();
|
||||
|
||||
return response()->json(['ipAddresses' => $ipAddresses], 200);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user