Skip to content

Commit d7b60b3

Browse files
committed
fix serial check in markdown
1 parent 52dceda commit d7b60b3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

resources/views/mail/markdown/checkin-license.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
@if (isset($license->manufacturer))
1111
| **{{ trans('general.manufacturer') }}** | {{ $license->manufacturer->name }} |
1212
@endif
13-
@if (($target instanceof \App\Models\User && $target->can('view', $license)) ||($target instanceof \App\Models\Asset && $license_seat->user->can('view', $license)))
13+
@if (($target instanceof \App\Models\User && $target->can('view', $license)) ||($target instanceof \App\Models\Asset && $license_seat->user?->can('view', $license)))
1414
| **Key** | {{ $license->serial }} |
1515
@endif
1616
@if (isset($item->category))

resources/views/mail/markdown/checkout-license.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
@if (isset($license->category))
1717
| **{{ trans('general.category') }}** | {{ $license->category->name }} |
1818
@endif
19-
@if (($target instanceof \App\Models\User && $target->can('view', $license)) || ($target instanceof \App\Models\Asset && $license_seat->user->can('view', $license)))
19+
@if (($target instanceof \App\Models\User && $target->can('view', $license)) || ($target instanceof \App\Models\Asset && $license_seat->user?->can('view', $license)))
2020
| **Key** | {{ $license->serial }} |
2121
@endif
2222
@if ($note)

0 commit comments

Comments
 (0)