mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Added function for read only admin and update ajax_search to honour perms
This commit is contained in:
@ -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");
|
||||
}
|
||||
|
Reference in New Issue
Block a user