X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Freminder%2Femail_warning.inc.php;h=6fc5c4066052637a881307a97ebaae372fdcb7c2;hb=7088a2a53904dc8bf3b84dcb374575bb36f22f8e;hp=4e6689fc858f7b41f4ccbb06be777dfef4118018;hpb=b27ccd85af8db2d996495ba1e8a63b504b2a9b4a;p=platal.git diff --git a/include/reminder/email_warning.inc.php b/include/reminder/email_warning.inc.php index 4e6689f..6fc5c40 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) + public static function IsCandidate(User $user, $candidate) { + if (!$user->checkPerms(User::PERM_MAIL)) { + return false; + } + return count(S::v('mx_failures', array())) > 0; } }