diff --git a/app/Http/Controllers/Api/AssetsController.php b/app/Http/Controllers/Api/AssetsController.php index 4ccd4c7601..dfc725ad39 100644 --- a/app/Http/Controllers/Api/AssetsController.php +++ b/app/Http/Controllers/Api/AssetsController.php @@ -275,7 +275,6 @@ class AssetsController extends Controller */ public function selectlist(Request $request) { - $this->authorize('view', Asset::class); $assets = Company::scopeCompanyables(Asset::select([ 'assets.id', diff --git a/app/Http/Controllers/Api/LocationsController.php b/app/Http/Controllers/Api/LocationsController.php index 163f1cd7ad..27140fff29 100644 --- a/app/Http/Controllers/Api/LocationsController.php +++ b/app/Http/Controllers/Api/LocationsController.php @@ -152,7 +152,6 @@ class LocationsController extends Controller */ public function selectlist(Request $request) { - $this->authorize('view', Location::class); $locations = Location::select([ 'locations.id', diff --git a/app/Http/Controllers/Api/UsersController.php b/app/Http/Controllers/Api/UsersController.php index 5417075775..6c8996b680 100644 --- a/app/Http/Controllers/Api/UsersController.php +++ b/app/Http/Controllers/Api/UsersController.php @@ -127,7 +127,6 @@ class UsersController extends Controller */ public function selectlist(Request $request) { - $this->authorize('view', User::class); $users = User::select( [