mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Change gate for updating assets via the API to edit
This commit is contained in:
parent
052132ec37
commit
a5c6ddb8ac
|
@ -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')) ?
|
||||
|
|
Loading…
Reference in a new issue