From 74c20e62d5a61aa0cfed3acf7ade8d58cc8ca099 Mon Sep 17 00:00:00 2001 From: snipe Date: Mon, 15 Oct 2018 17:57:47 -0700 Subject: [PATCH] Fixed - suppress the asset create button if the user is not allowed to create assets --- resources/views/hardware/index.blade.php | 3 +++ 1 file changed, 3 insertions(+) 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') Custom Export + @can('create', \App\Models\Asset::class) {{ trans('general.create') }} + @endcan + @stop {{-- Page content --}}