From ce94470a1023bc6856abc52438c91ab425215a48 Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 16 Apr 2025 16:41:25 +0100 Subject: [PATCH] Added comments Signed-off-by: snipe --- app/Listeners/CheckoutableListener.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Listeners/CheckoutableListener.php b/app/Listeners/CheckoutableListener.php index 5dc4f69360..a13b0dd438 100644 --- a/app/Listeners/CheckoutableListener.php +++ b/app/Listeners/CheckoutableListener.php @@ -73,6 +73,7 @@ class CheckoutableListener * 1. The asset requires acceptance * 2. The item has a EULA * 3. The item should send an email at check-in/check-out + * 4. If the admin CC email is set, even if the item being checked out doesn't have an email address (location, etc) */ if ($event->checkoutable->requireAcceptance() || $event->checkoutable->getEula() || @@ -176,8 +177,10 @@ class CheckoutableListener * 1. The asset requires acceptance * 2. The item has a EULA * 3. The item should send an email at check-in/check-out + * 4. If the admin CC email is set, even if the item being checked in doesn't have an email address (location, etc) */ - // Send a checkout email to the admins CC addresses, even if the target has no email + + // Send a checkout email to the admin's CC addresses, even if the target has no email if (!empty($ccEmails)) { Mail::to($ccEmails)->send($mailable); Log::info('Checkin Mail sent to CC addresses');