mirror of
https://github.com/snipe/snipe-it.git
synced 2026-02-05 10:45:24 +00:00
Change gate for updating assets via the API to edit
This commit is contained in:
@ -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')) ?
|
||||
|
||||
Reference in New Issue
Block a user