Skip to content

A free open source IT asset/license management system

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

snipe74c20e62d5a6
diff --git a/resources/views/hardware/index.blade.php b/resources/views/hardware/index.blade.php
index 2e9ed224d9..d54abd4aba 100755
--- a/resources/views/hardware/index.blade.php
+++ b/resources/views/hardware/index.blade.php
@@ -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 --}}