This authorization is now handled in the controller.

This commit is contained in:
Daniel Meltzer 2016-12-29 11:44:34 -05:00
parent 13b51bc934
commit fa974b93c0

View file

@ -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' ]);