Skip to content

Firefly III: a personal finances manager

Better mute

Sander Dorigo40eb77ffdedf
diff --git a/app/Notifications/Admin/UnknownUserLoginAttempt.php b/app/Notifications/Admin/UnknownUserLoginAttempt.php
index c9bf61bed1..ac4e34f2d5 100644
--- a/app/Notifications/Admin/UnknownUserLoginAttempt.php
+++ b/app/Notifications/Admin/UnknownUserLoginAttempt.php
@@ -113,7 +113,7 @@ class UnknownUserLoginAttempt extends Notification
public function via(OwnerNotifiable $notifiable): array
{
$channels = ReturnsAvailableChannels::returnChannels('owner');
- $isDemoSite = FireflyConfig::get('is_demo_site');
+ $isDemoSite = FireflyConfig::get('is_demo_site',false)->data;
if (true === $isDemoSite) {
return array_diff($channels, ['mail']);
}
diff --git a/app/Notifications/Security/UserFailedLoginAttempt.php b/app/Notifications/Security/UserFailedLoginAttempt.php
index 1e41239cf9..02243eb0ba 100644
--- a/app/Notifications/Security/UserFailedLoginAttempt.php
+++ b/app/Notifications/Security/UserFailedLoginAttempt.php
@@ -105,7 +105,7 @@ class UserFailedLoginAttempt extends Notification
public function via(User $notifiable): array
{
$channels = ReturnsAvailableChannels::returnChannels('user', $notifiable);
- $isDemoSite = FireflyConfig::get('is_demo_site');
+ $isDemoSite = FireflyConfig::get('is_demo_site',false)->data
if (true === $isDemoSite) {
return array_diff($channels, ['mail']);
}
diff --git a/app/Notifications/Test/OwnerTestNotificationEmail.php b/app/Notifications/Test/OwnerTestNotificationEmail.php
index c11ca2e29e..e4695f52be 100644
--- a/app/Notifications/Test/OwnerTestNotificationEmail.php
+++ b/app/Notifications/Test/OwnerTestNotificationEmail.php
@@ -64,7 +64,7 @@ class OwnerTestNotificationEmail extends Notification
*/
public function via(OwnerNotifiable $notifiable): array
{
- $isDemoSite = FireflyConfig::get('is_demo_site');
+ $isDemoSite = FireflyConfig::get('is_demo_site',false)->data
if (true === $isDemoSite) {
return [];
}
diff --git a/app/Notifications/Test/UserTestNotificationEmail.php b/app/Notifications/Test/UserTestNotificationEmail.php
index 8202022cea..9db1702ed1 100644
--- a/app/Notifications/Test/UserTestNotificationEmail.php
+++ b/app/Notifications/Test/UserTestNotificationEmail.php
@@ -61,7 +61,7 @@ class UserTestNotificationEmail extends Notification
*/
public function via(User $notifiable): array
{
- $isDemoSite = FireflyConfig::get('is_demo_site');
+ $isDemoSite = FireflyConfig::get('is_demo_site',false)->data
if (true === $isDemoSite) {
return [];
}
diff --git a/app/Notifications/User/NewAccessToken.php b/app/Notifications/User/NewAccessToken.php
index a3a3950788..bcc88b6601 100644
--- a/app/Notifications/User/NewAccessToken.php
+++ b/app/Notifications/User/NewAccessToken.php
@@ -103,7 +103,7 @@ class NewAccessToken extends Notification
public function via(User $notifiable): array
{
$channels = ReturnsAvailableChannels::returnChannels('user', $notifiable);
- $isDemoSite = FireflyConfig::get('is_demo_site');
+ $isDemoSite = FireflyConfig::get('is_demo_site',false)->data
if (true === $isDemoSite) {
return array_diff($channels, ['mail']);
}