Fixed - suppress the asset create button if the user is not allowed to create assets

This commit is contained in:
snipe 2018-10-15 17:57:47 -07:00
parent 0dbce93d1b
commit 74c20e62d5

View file

@ -44,7 +44,10 @@
@section('header_right')
<a href="{{ route('reports/custom') }}" style="margin-right: 5px;" class="btn btn-default">
Custom Export</a>
@can('create', \App\Models\Asset::class)
<a href="{{ route('hardware.create') }}" class="btn btn-primary pull-right"></i> {{ trans('general.create') }}</a>
@endcan
@stop
{{-- Page content --}}