Do not allow demo-user to delete other users

This commit is contained in:
f0o
2015-05-28 12:44:23 +00:00
parent 10f02045b2
commit b154b424bf

View File

@@ -2,7 +2,7 @@
echo('<div style="margin: 10px;">');
if ($_SESSION['userlevel'] < '10') { include("includes/error-no-perm.inc.php"); } else
if ($_SESSION['userlevel'] < 10 || $_SESSION['userlevel'] > 10) { include("includes/error-no-perm.inc.php"); } else
{
echo("<h3>Delete User</h3>");