Have acceptance result notifications adhere to alerts enabled setting

This commit is contained in:
Marcus Moore 2023-01-26 12:59:33 -08:00
parent 7a9ea91be0
commit 6fc8982478
No known key found for this signature in database
2 changed files with 10 additions and 0 deletions

View file

@ -46,6 +46,11 @@ class AcceptanceAssetAcceptedNotification extends Notification
}
public function shouldSend($notifiable, $channel)
{
return $this->settings->alerts_enabled && ! empty($this->settings->alert_email);
}
/**
* Get the mail representation of the notification.
*

View file

@ -44,6 +44,11 @@ class AcceptanceAssetDeclinedNotification extends Notification
}
public function shouldSend($notifiable, $channel)
{
return $this->settings->alerts_enabled && ! empty($this->settings->alert_email);
}
/**
* Get the mail representation of the notification.
*