I have looked at the Object Notes component and there are two functions it uses to detect if a user can configure a service.
Code: Select all
is_authorized_to_configure_service(0,$hostname,$servicename)
is_authorized_to_configure_host(0,$hostname)
Code: Select all
is_authorized_to_configure_service(0,$hostname,$servicename)
is_authorized_to_configure_host(0,$hostname)
Code: Select all
if(is_admin() == true) {
$html .= 'User IS an admin';
}
else {
$html .= 'User is NOT an admin';
}