Not sure if this was by design or a bug so I decided to report this and a fix.
If a read-only user with access to all the groups goes to "Monitoring" -> "Web" -> Expand an application -> Click on a Scenario. They get "Permission Denied" message. The user can go to latest data and see the result.
Fix below:
Modify /php/httpdetails.php around the top of the file.
Modified the "RED".
Before:
After:
If a read-only user with access to all the groups goes to "Monitoring" -> "Web" -> Expand an application -> Click on a Scenario. They get "Permission Denied" message. The user can go to latest data and see the result.
Fix below:
Modify /php/httpdetails.php around the top of the file.
Modified the "RED".
Before:
check_fields($fields);
$accessible_hosts = get_accessible_hosts_by_user($USER_DETAILS,PERM_READ_WRITE,null,null,$ZBX_CURNODEID);
if(!($httptest_data = DBfetch(DBselect('select ht.* from httptest ht, applications a '.
' where a.hostid in ('.$accessible_hosts.') and a.applicationid=ht.applicationid '.
' and ht.httptestid='.$_REQUEST['httptestid']))))
{
$accessible_hosts = get_accessible_hosts_by_user($USER_DETAILS,PERM_READ_WRITE,null,null,$ZBX_CURNODEID);
if(!($httptest_data = DBfetch(DBselect('select ht.* from httptest ht, applications a '.
' where a.hostid in ('.$accessible_hosts.') and a.applicationid=ht.applicationid '.
' and ht.httptestid='.$_REQUEST['httptestid']))))
{
check_fields($fields);
$accessible_hosts = get_accessible_hosts_by_user($USER_DETAILS,PERM_READ_ONLY,null,null,$ZBX_CURNODEID);
if(!($httptest_data = DBfetch(DBselect('select ht.* from httptest ht, applications a '.
' where a.hostid in ('.$accessible_hosts.') and a.applicationid=ht.applicationid '.
' and ht.httptestid='.$_REQUEST['httptestid']))))
{
$accessible_hosts = get_accessible_hosts_by_user($USER_DETAILS,PERM_READ_ONLY,null,null,$ZBX_CURNODEID);
if(!($httptest_data = DBfetch(DBselect('select ht.* from httptest ht, applications a '.
' where a.hostid in ('.$accessible_hosts.') and a.applicationid=ht.applicationid '.
' and ht.httptestid='.$_REQUEST['httptestid']))))
{
Comment