Check context when sending to alert address

This commit is contained in:
Marcus Moore
2025-10-22 16:41:36 -07:00
parent f64f4795c1
commit 60df2a17f8

View File

@@ -428,6 +428,7 @@ class CheckoutableListener
private function shouldSendCheckoutEmailToUser(Model $checkoutable): bool
{
// @todo: update comment
/**
* Send an email if we didn't get here from a bulk checkout
* and any of the following conditions are met:
@@ -458,6 +459,10 @@ class CheckoutableListener
private function shouldSendEmailToAlertAddress($acceptance = null): bool
{
if (Context::get('action') === 'bulk_asset_checkout') {
return false;
}
$setting = Setting::getSettings();
if (!$setting) {