From 0dfc27f56e8d83c8ba09937ff67cf16264be5ace Mon Sep 17 00:00:00 2001 From: snipe Date: Fri, 4 Mar 2022 05:44:46 -0800 Subject: [PATCH] Added remote to allowed_columns for sorting Signed-off-by: snipe --- 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 aad203109e..26a998007c 100644 --- a/app/Http/Controllers/Api/UsersController.php +++ b/app/Http/Controllers/Api/UsersController.php @@ -192,7 +192,7 @@ class UsersController extends Controller 'assets', 'accessories', 'consumables', 'licenses', 'groups', 'activated', 'created_at', 'two_factor_enrolled', 'two_factor_optin', 'last_login', 'assets_count', 'licenses_count', 'consumables_count', 'accessories_count', 'phone', 'address', 'city', 'state', - 'country', 'zip', 'id', 'ldap_import', + 'country', 'zip', 'id', 'ldap_import', 'remote', ]; $sort = in_array($request->get('sort'), $allowed_columns) ? $request->get('sort') : 'first_name';