From ee856ef04a11fcc403e524c901f7d5f69f29a644 Mon Sep 17 00:00:00 2001 From: Denis Volkov Date: Tue, 11 Oct 2022 11:52:46 -0700 Subject: [PATCH] disable notification settings check for logged in users, notifications are based on individual prayer requests --- Amen/Controllers/NotificationController.cs | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/Amen/Controllers/NotificationController.cs b/Amen/Controllers/NotificationController.cs index 2b736dd..b4d3bad 100644 --- a/Amen/Controllers/NotificationController.cs +++ b/Amen/Controllers/NotificationController.cs @@ -193,17 +193,18 @@ namespace Amen.Controllers //} } - //this indicates that someone submitted a prayer, so we should check if the user allows notifications, and then send them an email regarless of whether they sellected to allow prayed for notifications - if (appUser.EnableEmailNotifications && submitCheck) - return true; + //ignore any settings that logged-in user might have - comment out the following + ////this indicates that someone submitted a prayer, so we should check if the user allows notifications, and then send them an email regarless of whether they sellected to allow prayed for notifications + //if (appUser.EnableEmailNotifications && submitCheck) + // return true; - //if doing a noteCheck, then ignore the prayer.EnableEmailNotification flag as they explicitly chose to allow notes of encouragement but not necessarily to be notified when someone prays. - if (appUser.EnableEmailNotifications && noteCheck && prayer.EnableEmailNote) - return true; + ////if doing a noteCheck, then ignore the prayer.EnableEmailNotification flag as they explicitly chose to allow notes of encouragement but not necessarily to be notified when someone prays. + //if (appUser.EnableEmailNotifications && noteCheck && prayer.EnableEmailNote) + // return true; - //if user opted not to recieve notifications then return - if (!appUser.EnableEmailNotifications || !prayer.EnableEmailNotification) - return false; + ////if user opted not to recieve notifications then return + //if (!appUser.EnableEmailNotifications || !prayer.EnableEmailNotification) + // return false; return true; }