Jump to content
We've recently updated our Privacy Statement, available here ×

Hide Right Click options on Report based on ROLE


Balraj
Go to solution Solved by Balraj,

Recommended Posts

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • Solution

I got the answer:

Step1: Navigate to the path “JRSwebappsjasperserver-proWEB-INFactionModel-search.xml”

Step2: Find Context tag with name=”resource_menu

Step3: Add condition to hide the “Run in Background”option based on User Role

<condition test="checkModeAndDevice" testArgs="browse,search">

<condition test="checkAuthenticationRoles" testArgs="ROLE_ADMINISTRATOR"> <!-- Hide run-in background for non-admin users  -->

<simpleAction labelKey="RM_BUTTON_RUN_IN_BACKGROUND" action="invokeRedirectAction" actionArgs="RunInBackgroundResourceAction" clientTest="canBeRunInBackground" className="up"/>

</condition>                                      

</condition>

Cheers :D

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...