X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fsecurity.inc.php;h=e5c0b19ab86641ee3e1f2a1b57371310692719b4;hb=eb41eda94f6b91fbff6600e23a226e994ce1d7ef;hp=64e3714a2415f28d24650151b346ecc544dacfbb;hpb=a42116d3bbff95b7d5765cf6afb34c54c315d1e1;p=platal.git diff --git a/include/security.inc.php b/include/security.inc.php index 64e3714..e5c0b19 100644 --- a/include/security.inc.php +++ b/include/security.inc.php @@ -1,6 +1,6 @@ get_uid() == S::v('uid')) { $_SESSION['no_redirect'] = !$red->other_active(''); @@ -107,7 +108,7 @@ function send_warning_mail($title) function kill_sessions() { - assert(S::has_perms()); + assert(S::admin()); shell_exec('sudo -u root ' . dirname(dirname(__FILE__)) . '/bin/kill_sessions.sh'); }