Skip to content

A free open source IT asset/license management system

fix typo

Godfrey M407e06ef58ce
diff --git a/app/Notifications/AcceptanceItemAcceptedNotification.php b/app/Notifications/AcceptanceItemAcceptedNotification.php
index 794ddcc8d8..f614986c1b 100644
--- a/app/Notifications/AcceptanceItemAcceptedNotification.php
+++ b/app/Notifications/AcceptanceItemAcceptedNotification.php
@@ -67,7 +67,7 @@ class AcceptanceItemAcceptedNotification extends Notification implements ShouldQ
{
$settings = Setting::getSettings();
- return $settings->alerts_enabled && (!empty($settings->alert_email) || !empty($settings->cc_email));
+ return $settings->alerts_enabled && (!empty($settings->alert_email) || !empty($settings->admin_cc_email));
}
/**
diff --git a/app/Notifications/AcceptanceItemDeclinedNotification.php b/app/Notifications/AcceptanceItemDeclinedNotification.php
index 8c2482e074..7fa4f09a89 100644
--- a/app/Notifications/AcceptanceItemDeclinedNotification.php
+++ b/app/Notifications/AcceptanceItemDeclinedNotification.php
@@ -61,7 +61,9 @@ class AcceptanceItemDeclinedNotification extends Notification implements ShouldQ
public function shouldSend($notifiable, $channel)
{
- return Setting::getSettings()->alerts_enabled && !empty(Setting::getSettings()->alert_email);
+ $settings = Setting::getSettings();
+
+ return $settings->alerts_enabled && (!empty($settings->alert_email) || !empty($settings->admin_cc_email));
}
/**