mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Hide mfg button if no permissions to create
This commit is contained in:
parent
691ec164b1
commit
c75a2051ff
|
@ -8,8 +8,10 @@
|
|||
|
||||
{{-- Page title --}}
|
||||
@section('header_right')
|
||||
<a href="{{ route('manufacturers.create') }}" class="btn btn-primary pull-right">
|
||||
{{ trans('general.create') }}</a>
|
||||
@can('create', \App\Models\Manufacturer::class)
|
||||
<a href="{{ route('manufacturers.create') }}" class="btn btn-primary pull-right">
|
||||
{{ trans('general.create') }}</a>
|
||||
@endcan
|
||||
@stop
|
||||
|
||||
{{-- Page content --}}
|
||||
|
|
Loading…
Reference in a new issue