A free open source IT asset/license management system
Have acceptance result notifications adhere to alerts enabled setting
Marcus Moore6fc89824788d
diff --git a/app/Notifications/AcceptanceAssetAcceptedNotification.php b/app/Notifications/AcceptanceAssetAcceptedNotification.phpindex c667588dae..03a608fdd8 100644--- a/app/Notifications/AcceptanceAssetAcceptedNotification.php+++ b/app/Notifications/AcceptanceAssetAcceptedNotification.php@@ -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.*diff --git a/app/Notifications/AcceptanceAssetDeclinedNotification.php b/app/Notifications/AcceptanceAssetDeclinedNotification.phpindex 9446747353..5028a77fe2 100644--- a/app/Notifications/AcceptanceAssetDeclinedNotification.php+++ b/app/Notifications/AcceptanceAssetDeclinedNotification.php@@ -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.*