From 4d99d578202e01886980e5cbea0f04691b6f637c Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Mon, 25 Jan 2016 19:14:32 -0500 Subject: [PATCH] fix associated server display; closes #43 --- app/Http/Controllers/Admin/AccountsController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Controllers/Admin/AccountsController.php b/app/Http/Controllers/Admin/AccountsController.php index a38350fa0..4bbf4c085 100644 --- a/app/Http/Controllers/Admin/AccountsController.php +++ b/app/Http/Controllers/Admin/AccountsController.php @@ -65,6 +65,7 @@ class AccountsController extends Controller 'servers' => Server::select('servers.*', 'nodes.name as nodeName', 'locations.long as location') ->join('nodes', 'servers.node', '=', 'nodes.id') ->join('locations', 'nodes.location', '=', 'locations.id') + ->where('owner', $id) ->where('active', 1) ->get(), ]);