mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-14 01:24:06 -08:00
Merge pull request #11604 from snipe/fixes/only_show_requested_if_requestable_perms
Hide requested assets if the user cannot see requestable items
This commit is contained in:
commit
688577c1ed
|
@ -316,11 +316,14 @@
|
||||||
{{ trans('general.viewassets') }}
|
{{ trans('general.viewassets') }}
|
||||||
</a></li>
|
</a></li>
|
||||||
|
|
||||||
|
@can('viewRequestable', \App\Models\Asset::class)
|
||||||
<li {!! (Request::is('account/requested') ? ' class="active"' : '') !!}>
|
<li {!! (Request::is('account/requested') ? ' class="active"' : '') !!}>
|
||||||
<a href="{{ route('account.requested') }}">
|
<a href="{{ route('account.requested') }}">
|
||||||
<i class="fas fa-check fa-disk fa-fw" aria-hidden="true"></i>
|
<i class="fas fa-check fa-disk fa-fw" aria-hidden="true"></i>
|
||||||
{{ trans('general.requested_assets_menu') }}
|
{{ trans('general.requested_assets_menu') }}
|
||||||
</a></li>
|
</a></li>
|
||||||
|
@endcan
|
||||||
|
|
||||||
<li {!! (Request::is('account/accept') ? ' class="active"' : '') !!}>
|
<li {!! (Request::is('account/accept') ? ' class="active"' : '') !!}>
|
||||||
<a href="{{ route('account.accept') }}">
|
<a href="{{ route('account.accept') }}">
|
||||||
<i class="fas fa-check fa-disk fa-fw"></i>
|
<i class="fas fa-check fa-disk fa-fw"></i>
|
||||||
|
|
Loading…
Reference in a new issue