Ad Widget

Collapse

Version Pre 1.7.0 Build 6760 - Bar Reports - Permission Problems

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

    #1

    Version Pre 1.7.0 Build 6760 - Bar Reports - Permission Problems

    A restricted user who can only access certain host groups, gets a permission denied message when trying to add an item to the Bar Reports.
  • Aly
    ZABBIX developer
    • May 2007
    • 1126

    #2
    We can not reproduce this. Could you please provide us with any details?!
    Zabbix | ex GUI developer

    Comment

    • Palmertree
      Senior Member
      • Sep 2005
      • 746

      #3
      This does not happen to a user that has read-only access to every group but only to a user that has restricted read-only access to certain groups.

      So if a restricted user does the following a permission error is thrown.

      1. User clicks on "Reports"

      Click image for larger version

Name:	BarReports-Step1.GIF
Views:	1
Size:	6.4 KB
ID:	308407

      2. User clicks on "Bar reports"

      Click image for larger version

Name:	BarReports-Step2.GIF
Views:	1
Size:	6.5 KB
ID:	308408

      3. User then clicks on the "Add" button to add "Items" to the report:

      Click image for larger version

Name:	BarReports-Step3.jpg
Views:	1
Size:	52.9 KB
ID:	308409

      4. User then clicks on the "Select" button to add "Parameters" to the report.

      Click image for larger version

Name:	BarReports-Step4.GIF
Views:	1
Size:	10.3 KB
ID:	308410

      5. User is thrown the following popup message:

      Click image for larger version

Name:	BarReports-Step5.GIF
Views:	1
Size:	2.9 KB
ID:	308411

      Please let me know if you need additional information.
      Last edited by Palmertree; 27-02-2009, 04:08.

      Comment

      • Palmertree
        Senior Member
        • Sep 2005
        • 746

        #4
        Here is the fix:

        Code:
        diff -ruN zabbix-original/frontends/php/include/page_header.php zabbix/frontends/php/include/page_header.php
        --- zabbix-original/frontends/php/include/page_header.php    2009-02-28 10:03:40.000000000 -0500
        +++ zabbix/frontends/php/include/page_header.php    2009-03-01 15:09:16.000000000 -0500
        @@ -160,7 +160,8 @@
                                     'sub_pages'=>array('report3.php','report7.php','chart_sla.php','chart5.php')
                                 ),
                             array('url'=>'vtext.php'),
        -                    array('url'=>'chart3.php')
        +                    array('url'=>'chart3.php'),
        +                    array('url'=>'popup.php')
                             )
                         ),
                 'cm'=>array(

        Comment

        Working...