mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
Hide requested assets if the user cannot see requestable items
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
031b7998c9
commit
8027039754
|
@ -316,11 +316,14 @@
|
|||
{{ trans('general.viewassets') }}
|
||||
</a></li>
|
||||
|
||||
@can('viewRequestable', \App\Models\Asset::class)
|
||||
<li {!! (Request::is('account/requested') ? ' class="active"' : '') !!}>
|
||||
<a href="{{ route('account.requested') }}">
|
||||
<i class="fas fa-check fa-disk fa-fw" aria-hidden="true"></i>
|
||||
{{ trans('general.requested_assets_menu') }}
|
||||
</a></li>
|
||||
@endcan
|
||||
|
||||
<li {!! (Request::is('account/accept') ? ' class="active"' : '') !!}>
|
||||
<a href="{{ route('account.accept') }}">
|
||||
<i class="fas fa-check fa-disk fa-fw"></i>
|
||||
|
|
Loading…
Reference in a new issue