mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-23 11:43:47 -08:00
This authorization is now handled in the controller.
This commit is contained in:
parent
13b51bc934
commit
fa974b93c0
|
@ -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' ]);
|
||||
|
||||
|
|
Loading…
Reference in a new issue