hide some sensitive stuff for users < level 7

git-svn-id: http://www.observium.org/svn/observer/trunk@1031 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2010-03-17 15:15:36 +00:00
parent c84a1224ad
commit 0f1bd1f25d
2 changed files with 4 additions and 4 deletions

View File

@@ -1,11 +1,11 @@
<?php
if($_SESSION['userlevel'] < '5') {
if($_SESSION['userlevel'] < '7') {
print_error("Insufficient Privileges");
} else {
if($_POST['editing']) {
if($_SESSION['userlevel'] > "5") {
if($_SESSION['userlevel'] > "7") {
include("includes/device-edit.inc.php");
}
}