Merge pull request #15805 from Godmartinz/license-markdown-fix

Fixed license serial gate in markdown
This commit is contained in:
snipe 2024-11-13 20:13:28 +00:00 committed by GitHub
commit ab2e7a315a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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))

View file

@ -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)