Jump to content
We've recently updated our Privacy Statement, available here ×
  • How to Hide Manage > Organization Menu For All Users Except SUPERUSER


    asimkin
    • Features: JasperReports Server Version: v6.4 Product: JasperReports® Server

    Issue Description

    I have a requirement to hide Manage > Organizations menu for all users except superuser.

    How can I achieve it?


    Resolution

    The requirement can be achieved by modifying

    webappsjasperserver-proWEB-INFactionModel-navigation.xml config file.

    in line ~46 there is a definition of Manage > Organizations menu:

    <condition test="showMTMenuItem">
        <option labelKey="NAV_055_TENANT" action="primaryNavModule.navigationOption" actionArgs="organization"/>
    </condition>

    You should include one more condition to check ROLE_SUPERUSER role:

    <condition test="checkAuthenticationRoles" testArgs="ROLE_SUPERUSER">
        <condition test="showMTMenuItem">
            <option labelKey="NAV_055_TENANT" action="primaryNavModule.navigationOption" actionArgs="organization"/>
        </condition>
    </condition>

    Server must be restarted.

    Solution tested with TIBCO JasperReports® Server v.6.4.0


    Ref. Case 01516078


    User Feedback

    Recommended Comments

    There are no comments to display.



    Guest
    This is now closed for further comments

×
×
  • Create New...