mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-03 18:07:41 -08:00
Merge pull request #15805 from Godmartinz/license-markdown-fix
Fixed license serial gate in markdown
This commit is contained in:
commit
ab2e7a315a
|
@ -10,7 +10,7 @@
|
|||
@if (isset($license->manufacturer))
|
||||
| **{{ trans('general.manufacturer') }}** | {{ $license->manufacturer->name }} |
|
||||
@endif
|
||||
@if (($target instanceof \App\Models\User && $target->can('view', $license)) ||($target instanceof \App\Models\Asset && $license_seat->user->can('view', $license)))
|
||||
@if (($target instanceof \App\Models\User && $target->can('view', $license)) ||($target instanceof \App\Models\Asset && $license_seat->user?->can('view', $license)))
|
||||
| **Key** | {{ $license->serial }} |
|
||||
@endif
|
||||
@if (isset($item->category))
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
@if (isset($license->category))
|
||||
| **{{ trans('general.category') }}** | {{ $license->category->name }} |
|
||||
@endif
|
||||
@if (($target instanceof \App\Models\User && $target->can('view', $license)) || ($target instanceof \App\Models\Asset && $license_seat->user->can('view', $license)))
|
||||
@if (($target instanceof \App\Models\User && $target->can('view', $license)) || ($target instanceof \App\Models\Asset && $license_seat->user?->can('view', $license)))
|
||||
| **Key** | {{ $license->serial }} |
|
||||
@endif
|
||||
@if ($note)
|
||||
|
|
Loading…
Reference in a new issue