mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 06:17:28 -08:00
Fixed #4668 - wrong gate on manufacturer save
This commit is contained in:
parent
991f182f89
commit
589c3a2be3
|
@ -67,7 +67,7 @@ class ManufacturersController extends Controller
|
|||
public function store(ImageUploadRequest $request)
|
||||
{
|
||||
|
||||
$this->authorize('edit', Manufacturer::class);
|
||||
$this->authorize('create', Manufacturer::class);
|
||||
$manufacturer = new Manufacturer;
|
||||
$manufacturer->name = $request->input('name');
|
||||
$manufacturer->user_id = Auth::user()->id;
|
||||
|
|
Loading…
Reference in a new issue