projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changes geocoding engine to gmaps v3.
[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
..
6fc5c40
100644
(file)
--- a/
include/reminder/email_warning.inc.php
+++ b/
include/reminder/email_warning.inc.php
@@
-1,6
+1,6
@@
<?php
/***************************************************************************
<?php
/***************************************************************************
- * Copyright (C) 2003-201
0
Polytechnique.org *
+ * Copyright (C) 2003-201
1
Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-41,8
+41,12
@@
class ReminderEmailWarning extends Reminder
return true;
}
return true;
}
- public static function IsCandidate(User
&
$user, $candidate)
+ public static function IsCandidate(User $user, $candidate)
{
{
+ if (!$user->checkPerms(User::PERM_MAIL)) {
+ return false;
+ }
+
return count(S::v('mx_failures', array())) > 0;
}
}
return count(S::v('mx_failures', array())) > 0;
}
}