Added comments
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
e7592eeeb9
commit
ce94470a10
1 changed files with 4 additions and 1 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Reference in a new issue