From 6852b743176e7503b07deea5f3f52efd8f059129 Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 9 Nov 2017 10:51:55 -0800 Subject: [PATCH] Removed gates from selectlist method --- app/Http/Controllers/Api/AssetModelsController.php | 1 - app/Http/Controllers/Api/CompaniesController.php | 1 - app/Http/Controllers/Api/DepartmentsController.php | 1 - app/Http/Controllers/Api/ManufacturersController.php | 1 - app/Http/Controllers/Api/SuppliersController.php | 1 - 5 files changed, 5 deletions(-) diff --git a/app/Http/Controllers/Api/AssetModelsController.php b/app/Http/Controllers/Api/AssetModelsController.php index 8b81947d2a..637d13d61d 100644 --- a/app/Http/Controllers/Api/AssetModelsController.php +++ b/app/Http/Controllers/Api/AssetModelsController.php @@ -182,7 +182,6 @@ class AssetModelsController extends Controller */ public function selectlist(Request $request) { - $this->authorize('view', AssetModel::class); $assetmodels = AssetModel::select([ 'models.id', diff --git a/app/Http/Controllers/Api/CompaniesController.php b/app/Http/Controllers/Api/CompaniesController.php index 3a21e80290..4d5a1b2a4f 100644 --- a/app/Http/Controllers/Api/CompaniesController.php +++ b/app/Http/Controllers/Api/CompaniesController.php @@ -153,7 +153,6 @@ class CompaniesController extends Controller */ public function selectlist(Request $request) { - $this->authorize('view', Company::class); $companies = Company::select([ 'companies.id', diff --git a/app/Http/Controllers/Api/DepartmentsController.php b/app/Http/Controllers/Api/DepartmentsController.php index a899708ee7..7acd3f5976 100644 --- a/app/Http/Controllers/Api/DepartmentsController.php +++ b/app/Http/Controllers/Api/DepartmentsController.php @@ -122,7 +122,6 @@ class DepartmentsController extends Controller */ public function selectlist(Request $request) { - $this->authorize('view', Department::class); $departments = Department::select([ 'id', diff --git a/app/Http/Controllers/Api/ManufacturersController.php b/app/Http/Controllers/Api/ManufacturersController.php index 21c99810a1..9b35148cc0 100644 --- a/app/Http/Controllers/Api/ManufacturersController.php +++ b/app/Http/Controllers/Api/ManufacturersController.php @@ -132,7 +132,6 @@ class ManufacturersController extends Controller */ public function selectlist(Request $request) { - $this->authorize('view', Manufacturers::class); $manufacturers = Manufacturer::select([ 'id', diff --git a/app/Http/Controllers/Api/SuppliersController.php b/app/Http/Controllers/Api/SuppliersController.php index 288b6b3c2d..96a1efe224 100644 --- a/app/Http/Controllers/Api/SuppliersController.php +++ b/app/Http/Controllers/Api/SuppliersController.php @@ -146,7 +146,6 @@ class SuppliersController extends Controller */ public function selectlist(Request $request) { - $this->authorize('view', Supplier::class); $suppliers = Supplier::select([ 'id',