Balraj Posted August 13, 2016 Share Posted August 13, 2016 Hi Community,1. How to hide right click options on reports based on Role.Only Report Administrator should be able to see all the options and ROLE_USER should see only "RUN & RUN IN NEW TAB" option in the right click options. Link to comment Share on other sites More sharing options...
Solution Balraj Posted August 17, 2016 Author Solution Share Posted August 17, 2016 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now