disable notification settings check for logged in users, notifications are based on individual prayer requests

This commit is contained in:
Denis Volkov 2022-10-11 11:52:46 -07:00
parent ed53a40448
commit ee856ef04a

View File

@ -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;
}