mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-08-28 17:07:21 +00:00
@@ -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']);
|
||||
}
|
||||
|
@@ -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']);
|
||||
}
|
||||
|
@@ -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 [];
|
||||
}
|
||||
|
@@ -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 [];
|
||||
}
|
||||
|
@@ -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']);
|
||||
}
|
||||
|
Reference in New Issue
Block a user