From fa974b93c05a7490bd09d16acf4b091321d75d15 Mon Sep 17 00:00:00 2001 From: Daniel Meltzer Date: Thu, 29 Dec 2016 11:44:34 -0500 Subject: [PATCH] This authorization is now handled in the controller. --- routes/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/api.php b/routes/api.php index 3d7a334c3d..8f08a06da8 100644 --- a/routes/api.php +++ b/routes/api.php @@ -19,7 +19,7 @@ use App\Models\Statuslabel; Route::group(['prefix' => 'v1', 'middleware' => 'auth:api'], function () { /*---Hardware API---*/ - Route::group([ 'prefix' => 'hardware','middleware' => ['web','auth','authorize:assets.view']], function () { + Route::group([ 'prefix' => 'hardware','middleware' => ['web','auth']], function () { Route::get('list/{status?}', [ 'as' => 'api.hardware.list', 'uses' => 'AssetsController@getDatatable' ]);