Skip to content

Commit

Permalink
fix: disable team scope for admin pages 2
Browse files Browse the repository at this point in the history
  • Loading branch information
bohdan-shulha committed Oct 15, 2024
1 parent 5776e98 commit 77fbf10
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/Http/Controllers/Admin/TeamController.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ class TeamController extends Controller
{
public function index()
{
$teams = Team::with('owner')
->withCount('nodes', 'services', 'onlineNodes', 'deployments')
->paginate(30);
$teams = Team::withCount('nodes', 'services', 'onlineNodes', 'deployments')->paginate(30);

$teams->load('owner');

return Inertia::render('Admin/Teams/List', [
'teams' => $teams,
Expand Down

0 comments on commit 77fbf10

Please sign in to comment.