projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Disable mail-related reminders when the user has an account without email.
[platal.git]
/
include
/
reminder
/
email_warning.inc.php
diff --git
a/include/reminder/email_warning.inc.php
b/include/reminder/email_warning.inc.php
index
e1534cc
..
887f5a9
100644
(file)
--- a/
include/reminder/email_warning.inc.php
+++ b/
include/reminder/email_warning.inc.php
@@
-43,6
+43,10
@@
class ReminderEmailWarning extends Reminder
public static function IsCandidate(User &$user, $candidate)
{
+ if (!$user->checkPerms(User::PERM_MAIL)) {
+ return false;
+ }
+
return count(S::v('mx_failures', array())) > 0;
}
}