Skip to content

Commit 8c89eb6

Browse files
committed
Avoid showing EULA
1 parent 4167c6e commit 8c89eb6

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

app/Mail/BulkAssetCheckoutMail.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ public function content(): Content
4949
'requires_acceptance' => $this->requires_acceptance,
5050
'requires_acceptance_wording' => $this->getRequiresAcceptanceWording(),
5151
'acceptance_url' => $this->acceptanceUrl(),
52-
'eula' => $this->getEula(),
5352
],
5453
);
5554
}
@@ -86,23 +85,6 @@ private function acceptanceUrl()
8685
return route('account.accept.item', $this->assets->first());
8786
}
8887

89-
private function getEula()
90-
{
91-
// if assets do not have the same category then return early...
92-
$categories = $this->assets->pluck('model.category.id')->unique();
93-
94-
if ($categories->count() > 1) {
95-
return;
96-
}
97-
98-
// if assets do have the same category then return the shared EULA
99-
if ($categories->count() === 1) {
100-
return $this->assets->first()->getEula();
101-
}
102-
103-
// @todo: if the categories use the default eula then return that
104-
}
105-
10688
private function loadCustomFieldsOnAssets(): void
10789
{
10890
$this->assets = $this->assets->map(function (Asset $asset) {

resources/views/mail/markdown/bulk-asset-checkout-mail.blade.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,6 @@
3232
**{{ trans('mail.additional_notes') }}**: {{ $note }}
3333
@endif
3434

35-
@if ($eula)
36-
<x-mail::panel>
37-
{{ $eula }}
38-
</x-mail::panel>
39-
@endif
40-
4135
<x-mail::table>
4236
| | |
4337
| ------------- | ------------- |

0 commit comments

Comments
 (0)