1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Permissions fix

This commit is contained in:
Hillel Coren 2018-06-08 09:50:34 +03:00
parent 653a8f2412
commit fdf3b78dc4

View File

@ -118,7 +118,7 @@ class ProductController extends BaseController
/**
* @return \Illuminate\Contracts\View\View
*/
public function create(CreateProductRequest $request)
public function create(ProductRequest $request)
{
$account = Auth::user()->account;
@ -138,7 +138,7 @@ class ProductController extends BaseController
/**
* @return \Illuminate\Http\RedirectResponse
*/
public function store()
public function store(CreateProductRequest $request)
{
return $this->save();
}
@ -148,7 +148,7 @@ class ProductController extends BaseController
*
* @return \Illuminate\Http\RedirectResponse
*/
public function update($publicId)
public function update(UpdateProductRequest $request, $publicId)
{
return $this->save($publicId);
}