Added function for read only admin and update ajax_search to honour perms

This commit is contained in:
laf
2015-04-22 20:39:09 +01:00
parent a18779843a
commit e34bb7235c
2 changed files with 29 additions and 4 deletions

View File

@ -730,6 +730,15 @@ function is_admin() {
return $allowed;
}
function is_read() {
if ($_SESSION['userlevel'] == '5') {
$allowed = true;
} else {
$allowed = false;
}
return $allowed;
}
function demo_account() {
print_error("You are logged in as a demo account, this page isn't accessible to you");
}