Implements the first API handler (/api/1/user/<user>/isRegistered). It
[platal.git] / include / reminder / no_redirection.inc.php
index 706bfb2..b6211d4 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2009 Polytechnique.org                              *
+ *  Copyright (C) 2003-2010 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -40,9 +40,16 @@ class ReminderNoRedirection extends Reminder
     {
         return true;
     }
+    public function info()
+    {
+        return 'Xorg/MesAdressesDeRedirection';
+    }
 
     public static function IsCandidate(User &$user, $candidate)
     {
+        if (!$user->checkPerms(User::PERM_MAIL)) {
+            return false;
+        }
         return S::v('no_redirect');
     }
 }