From 5a1e1c73c9efd494bacc93b54bbf3572fa6aa851 Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 18 Jul 2018 03:59:02 -0700 Subject: [PATCH] Include show_in_list option in select --- app/Http/Controllers/Api/UsersController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Api/UsersController.php b/app/Http/Controllers/Api/UsersController.php index dcafd337df..1c65caa640 100644 --- a/app/Http/Controllers/Api/UsersController.php +++ b/app/Http/Controllers/Api/UsersController.php @@ -142,7 +142,7 @@ class UsersController extends Controller 'users.avatar', 'users.email', ] - ); + )->where('show_in_list', '=', '1'); $users = Company::scopeCompanyables($users);