Removed gates on selectlists

They can’t access the API directly unless they have been granted API accesses anyway
This commit is contained in:
snipe 2017-11-03 13:03:57 -07:00
parent 416455fe01
commit 85360a7c7f
3 changed files with 0 additions and 3 deletions

View file

@ -275,7 +275,6 @@ class AssetsController extends Controller
*/ */
public function selectlist(Request $request) public function selectlist(Request $request)
{ {
$this->authorize('view', Asset::class);
$assets = Company::scopeCompanyables(Asset::select([ $assets = Company::scopeCompanyables(Asset::select([
'assets.id', 'assets.id',

View file

@ -152,7 +152,6 @@ class LocationsController extends Controller
*/ */
public function selectlist(Request $request) public function selectlist(Request $request)
{ {
$this->authorize('view', Location::class);
$locations = Location::select([ $locations = Location::select([
'locations.id', 'locations.id',

View file

@ -127,7 +127,6 @@ class UsersController extends Controller
*/ */
public function selectlist(Request $request) public function selectlist(Request $request)
{ {
$this->authorize('view', User::class);
$users = User::select( $users = User::select(
[ [