From 954b54f9148c070c5f7fab054da05f6b431b921f Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 14 Jun 2022 15:06:04 -0700 Subject: [PATCH] Removed duplicated $allowed_columns Signed-off-by: snipe --- app/Http/Controllers/Api/AccessoriesController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Http/Controllers/Api/AccessoriesController.php b/app/Http/Controllers/Api/AccessoriesController.php index f386c8e720..a894dc3760 100644 --- a/app/Http/Controllers/Api/AccessoriesController.php +++ b/app/Http/Controllers/Api/AccessoriesController.php @@ -27,8 +27,7 @@ class AccessoriesController extends Controller public function index(Request $request) { $this->authorize('view', Accessory::class); - $allowed_columns = ['id', 'name', 'model_number', 'eol', 'notes', 'created_at', 'min_amt', 'company_id']; - + // This array is what determines which fields should be allowed to be sorted on ON the table itself, no relations // Relations will be handled in query scopes a little further down. $allowed_columns =