mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
Permissions fix
This commit is contained in:
parent
653a8f2412
commit
fdf3b78dc4
@ -118,7 +118,7 @@ class ProductController extends BaseController
|
|||||||
/**
|
/**
|
||||||
* @return \Illuminate\Contracts\View\View
|
* @return \Illuminate\Contracts\View\View
|
||||||
*/
|
*/
|
||||||
public function create(CreateProductRequest $request)
|
public function create(ProductRequest $request)
|
||||||
{
|
{
|
||||||
|
|
||||||
$account = Auth::user()->account;
|
$account = Auth::user()->account;
|
||||||
@ -138,7 +138,7 @@ class ProductController extends BaseController
|
|||||||
/**
|
/**
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*/
|
*/
|
||||||
public function store()
|
public function store(CreateProductRequest $request)
|
||||||
{
|
{
|
||||||
return $this->save();
|
return $this->save();
|
||||||
}
|
}
|
||||||
@ -148,7 +148,7 @@ class ProductController extends BaseController
|
|||||||
*
|
*
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*/
|
*/
|
||||||
public function update($publicId)
|
public function update(UpdateProductRequest $request, $publicId)
|
||||||
{
|
{
|
||||||
return $this->save($publicId);
|
return $this->save($publicId);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user