Fixed #4668 - wrong gate on manufacturer save
This commit is contained in:
parent
991f182f89
commit
589c3a2be3
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue