mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-26 05:01:06 -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)
|
public function store(ImageUploadRequest $request)
|
||||||
{
|
{
|
||||||
|
|
||||||
$this->authorize('edit', Manufacturer::class);
|
$this->authorize('create', Manufacturer::class);
|
||||||
$manufacturer = new Manufacturer;
|
$manufacturer = new Manufacturer;
|
||||||
$manufacturer->name = $request->input('name');
|
$manufacturer->name = $request->input('name');
|
||||||
$manufacturer->user_id = Auth::user()->id;
|
$manufacturer->user_id = Auth::user()->id;
|
||||||
|
|
Loading…
Reference in a new issue