Fixed #4668 - wrong gate on manufacturer save

This commit is contained in:
snipe 2018-02-16 17:45:27 -08:00
parent 991f182f89
commit 589c3a2be3

View file

@ -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;