Change gate for updating assets via the API to edit

This commit is contained in:
snipe 2018-03-05 21:27:17 -08:00
parent 052132ec37
commit a5c6ddb8ac

View file

@ -420,7 +420,7 @@ class AssetsController extends Controller
*/
public function update(Request $request, $id)
{
$this->authorize('create', Asset::class);
$this->authorize('edit', Asset::class);
if ($asset = Asset::find($id)) {
($request->has('model_id')) ?