Ad Widget

Collapse

Patch for Version 1.4.1 and Pre 1.4.2 to fix Read-Only Web Menu

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Palmertree
    Senior Member
    • Sep 2005
    • 746

    #1

    Patch for Version 1.4.1 and Pre 1.4.2 to fix Read-Only Web Menu

    A user with Read-only to all the groups, can not see the "Host" in the drop down, even if they select a "Group" while viewing "Web Monitoring". Here is a patch to fix the issue or problem.

    Modify httpmon.php

    Before:
    // Table HEADER
    $form = new CForm();

    $cmbGroup = new CComboBox("groupid",$_REQUEST["groupid"],"submit();");
    $cmbGroup->AddItem(0,S_ALL_SMALL);

    $accessible_hosts = get_accessible_hosts_by_user($USER_DETAILS,PERM_READ_WRITE,null,null,$ZBX_CURNODEID);
    $accessible_groups = get_accessible_groups_by_user($USER_DETAILS,PERM_R EAD_LIST, null, null, $ZBX_CURNODEID);
    After
    // Table HEADER
    $form = new CForm();

    $cmbGroup = new CComboBox("groupid",$_REQUEST["groupid"],"submit();");
    $cmbGroup->AddItem(0,S_ALL_SMALL);

    $accessible_hosts = get_accessible_hosts_by_user($USER_DETAILS,PERM_READ_LIST,null,null,$ZBX_CURNODEID);
    $accessible_groups = get_accessible_groups_by_user($USER_DETAILS,PERM_R EAD_LIST, null, null, $ZBX_CURNODEID);
    Last edited by Palmertree; 30-07-2007, 05:18.
  • Palmertree
    Senior Member
    • Sep 2005
    • 746

    #2
    Has anyone had a chance to verify this patch? Thanks in advance.

    Comment

    Working...