mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Protect edit route as well
This commit is contained in:
parent
f5e100a6a5
commit
b6ffb8b3df
|
@ -499,8 +499,12 @@ Route::group([ 'prefix' => 'admin','middleware' => ['web','auth']], function ()
|
||||||
'uses' => 'AssetMaintenancesController@getEdit'
|
'uses' => 'AssetMaintenancesController@getEdit'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
Route::post('{assetMaintenanceId}/edit',
|
||||||
|
[ 'as' => 'update/asset_maintenance.save',
|
||||||
|
'middleware' => 'authorize:assets.edit',
|
||||||
|
'uses' => 'AssetMaintenancesController@postEdit'
|
||||||
|
]);
|
||||||
|
|
||||||
Route::post('{assetMaintenanceId}/edit', 'AssetMaintenancesController@postEdit');
|
|
||||||
Route::get(
|
Route::get(
|
||||||
'{assetMaintenanceId}/delete',
|
'{assetMaintenanceId}/delete',
|
||||||
[ 'as' => 'delete/asset_maintenance', 'uses' => 'AssetMaintenancesController@getDelete' ]
|
[ 'as' => 'delete/asset_maintenance', 'uses' => 'AssetMaintenancesController@getDelete' ]
|
||||||
|
|
Loading…
Reference in a new issue