projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add OpenID trusted management is admin/user/.
[platal.git]
/
include
/
security.inc.php
diff --git
a/include/security.inc.php
b/include/security.inc.php
index
b202df4
..
e5c0b19
100644
(file)
--- a/
include/security.inc.php
+++ b/
include/security.inc.php
@@
-1,6
+1,6
@@
<?php
/***************************************************************************
<?php
/***************************************************************************
- * Copyright (C) 2003-200
8
Polytechnique.org *
+ * Copyright (C) 2003-200
9
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 *
@@
-108,7
+108,7
@@
function send_warning_mail($title)
function kill_sessions()
{
function kill_sessions()
{
- assert(S::
has_perms
());
+ assert(S::
admin
());
shell_exec('sudo -u root ' . dirname(dirname(__FILE__)) . '/bin/kill_sessions.sh');
}
shell_exec('sudo -u root ' . dirname(dirname(__FILE__)) . '/bin/kill_sessions.sh');
}