Ad Widget

Collapse

How to hide/show menu frontend menu items for guest

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vrtareg
    Senior Member
    • May 2006
    • 293

    #1

    How to hide/show menu frontend menu items for guest

    Hi

    I try to find out possibility to hide some menu items in frontend for Guest user.
    Is it possible to customize frontend and hide for example "Monitoring -> Web, Latest data, Triggers, Events, Maps, IT Servises"?
    I don't want that the users who use the monitoring page see this items and get confused.

    Regards
    Areg
  • danrog
    Senior Member
    • Sep 2009
    • 164

    #2
    You would have to modify menus.inc.php under the includes directory. I forget exactly which permissions you have to set the menu item too but you should be able to figure it out by looking at the other menu entries.

    Comment

    • lgc78
      Member
      • Aug 2010
      • 35

      #3
      Areg,

      Did you ever end up figuring this out. I'm looking at the menu.inc.php file but have not been able to make sense of it. Any help would be appreciated. thx!

      Comment

      • lgc78
        Member
        • Aug 2010
        • 35

        #4
        Figured it out. Here's an example in case anyone else is looking to do the same.

        To hide the Reports Menu option from a user open the menu.inc.php file and look for this section:


        'reports'=>array(
        'label' => S_REPORTS,
        'user_type' => USER_TYPE_ZABBIX_USER,
        'node_perm' => PERM_READ_LIST,
        'default_page_id' => 0,
        'pages'=>array(

        Simply change the line that reads 'user_type'=> USER_TYPE_ZABBIX_USER, to
        'user_type'=> USER_TYPE_ZABBIX_ADMIN,

        Now only an Admin or Super Admin will be able to see the Reports menu option when logged in.

        Comment

        • walterheck
          Senior Member
          • Jul 2009
          • 153

          #5
          I think he wants to hide it just from guests actually..
          Free and Open Source Zabbix Templates Repository | Hosted Zabbix @ Tribily (http://tribily.com)

          Comment

          • vrtareg
            Senior Member
            • May 2006
            • 293

            #6
            Yes you are right.
            I want to hide particular menus from guests only.
            I will try to play out with the menu.inc.php file and provide results.

            Comment

            • magicker
              Junior Member
              • Apr 2019
              • 5

              #7
              THANK YOU!! the user management on this is shocking.

              Comment

              • svega507
                Junior Member
                • Jun 2020
                • 6

                #8
                How can i add other submenu? ....example : Report->AvailabilityReport->Trigger Top 100->MySubmenu.php

                Comment

                Working...