mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
do not send notification emails to disabled users
This commit is contained in:
parent
78328df952
commit
7e12f18e2b
|
@ -42,7 +42,7 @@ class SeedDMS_EmailNotify extends SeedDMS_Notify {
|
|||
|
||||
function toIndividual($sender, $recipient, $subject, $message, $params=array()) { /* {{{ */
|
||||
global $settings;
|
||||
if ($recipient->getEmail()=="") return 0;
|
||||
if ($recipient->isDisabled() || $recipient->getEmail()=="") return 0;
|
||||
|
||||
if ((!is_object($sender) && strcasecmp(get_class($sender), "SeedDMS_Core_User")) ||
|
||||
(!is_object($recipient) && strcasecmp(get_class($recipient), "SeedDMS_Core_User"))) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user