Skip to content

Commit 77fbf10

Browse files
committed
fix: disable team scope for admin pages 2
1 parent 5776e98 commit 77fbf10

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: app/Http/Controllers/Admin/TeamController.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ class TeamController extends Controller
1010
{
1111
public function index()
1212
{
13-
$teams = Team::with('owner')
14-
->withCount('nodes', 'services', 'onlineNodes', 'deployments')
15-
->paginate(30);
13+
$teams = Team::withCount('nodes', 'services', 'onlineNodes', 'deployments')->paginate(30);
14+
15+
$teams->load('owner');
1616

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

0 commit comments

Comments
 (0)