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);