X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Freminder%2Femail_warning.inc.php;h=887f5a9d252ada3722d875882ef0c3f230c7f1f7;hb=1f64f1a78896aa527b081e5c7526963524f9bf8b;hp=f20cdb56d09b0a99ed009961d8f504cd4683ce61;hpb=efc272e2fe65652122302d354e223c0576fb2110;p=platal.git diff --git a/include/reminder/email_warning.inc.php b/include/reminder/email_warning.inc.php index f20cdb5..887f5a9 100644 --- a/include/reminder/email_warning.inc.php +++ b/include/reminder/email_warning.inc.php @@ -1,6 +1,6 @@ changeTpl('reminder/email_warning.tpl', NO_SKIN); - $page->assign('baseurl', $this->GetBaseUrl()); + return "Problème avec ta redirections d'emails"; + } + public function warning() + { + return true; } public static function IsCandidate(User &$user, $candidate) { + if (!$user->checkPerms(User::PERM_MAIL)) { + return false; + } + return count(S::v('mx_failures', array())) > 0; } }