X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fsecurity.inc.php;h=2f77f826b99c4f81a96a9d03f822b0035cb6fac6;hb=16d2c88314364b5e79936f4262d453dff03abdad;hp=e5c0b19ab86641ee3e1f2a1b57371310692719b4;hpb=d1e6167749fdad08c81e23d09e1bbbf76e3b989b;p=platal.git diff --git a/include/security.inc.php b/include/security.inc.php index e5c0b19..2f77f82 100644 --- a/include/security.inc.php +++ b/include/security.inc.php @@ -1,6 +1,6 @@ numRows()) { send_warning_mail($message); @@ -78,7 +78,10 @@ function check_email($email, $message) function check_account() { - return S::v('watch_account'); + if (S::user()) { + return S::user()->watch; + } + return false; } function check_redirect($red = null)