mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Have acceptance result notifications adhere to alerts enabled setting
This commit is contained in:
parent
7a9ea91be0
commit
6fc8982478
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue