From 8027039754d22149a1e540907267d7e906be72da Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 2 Aug 2022 11:48:45 -0700 Subject: [PATCH] Hide requested assets if the user cannot see requestable items Signed-off-by: snipe --- resources/views/layouts/default.blade.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/views/layouts/default.blade.php b/resources/views/layouts/default.blade.php index 85ec627a2b..6d27fd1848 100644 --- a/resources/views/layouts/default.blade.php +++ b/resources/views/layouts/default.blade.php @@ -316,11 +316,14 @@ {{ trans('general.viewassets') }} + @can('viewRequestable', \App\Models\Asset::class)
  • {{ trans('general.requested_assets_menu') }}
  • + @endcan +