mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Add viewKeys
permission check on Asset page (#5141)
This commit is contained in:
parent
f171357e36
commit
4fe4c0c72a
|
@ -541,7 +541,13 @@
|
|||
@foreach ($asset->licenseseats as $seat)
|
||||
<tr>
|
||||
<td><a href="{{ route('licenses.show', $seat->license->id) }}">{{ $seat->license->name }}</a></td>
|
||||
<td>{{ $seat->license->serial }}</td>
|
||||
<td>
|
||||
@can('viewKeys', $seat->license)
|
||||
{!! nl2br(e($seat->license->serial)) !!}
|
||||
@else
|
||||
------------
|
||||
@endcan
|
||||
</td>
|
||||
<td>
|
||||
<a href="{{ route('licenses.checkin', $seat->id) }}" class="btn btn-sm bg-purple" data-tooltip="true">{{ trans('general.checkin') }}</a>
|
||||
</td>
|
||||
|
|
Loading…
Reference in a new issue