mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Fixed - suppress the asset create button if the user is not allowed to create assets
This commit is contained in:
parent
0dbce93d1b
commit
74c20e62d5
|
@ -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 --}}
|
||||
|
|
Loading…
Reference in a new issue