mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
Permission fixes
This commit is contained in:
parent
9ed27dfb51
commit
f4db62cf51
@ -3,6 +3,7 @@
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Http\Requests\CreateProductRequest;
|
||||
use App\Http\Requests\UpdateProductRequest;
|
||||
use App\Http\Requests\ProductRequest;
|
||||
use App\Models\Product;
|
||||
use App\Models\TaxRate;
|
||||
|
@ -60,7 +60,8 @@
|
||||
</div>
|
||||
@endif
|
||||
@endforeach
|
||||
@if((!$product && Auth::user()->can('create', ENTITY_PRODUCT)) || ($product && Auth::user()->can('edit',[ENTITY_PRODUCT, $product])))
|
||||
|
||||
@if (Auth::user()->canCreateOrEdit(ENTITY_PRODUCT, $product))
|
||||
<center class="buttons">
|
||||
{!! Button::normal(trans('texts.cancel'))->large()->asLinkTo(HTMLUtils::previousUrl('/products'))->appendIcon(Icon::create('remove-circle')) !!}
|
||||
{!! Button::success(trans('texts.save'))->submit()->large()->appendIcon(Icon::create('floppy-disk')) !!}
|
||||
|
Loading…
Reference in New Issue
Block a user