madanadiandhra Posted April 12, 2012 Share Posted April 12, 2012 Hi, I am using JasperServer 4.5, i have created my own menus and users in the server, but when i login i am seeing ' View ' menu for every user, how can i hide this menu. In JasperServer 3.5, we have JI-menu.xml in webapps\jasperserver\WEB-INF\classes folder where i can hide the menus based on roles,But i am not able to see JI-menu.xml in JasperServer 4.5, so how to resolve my issue, can any body help me out quickly Regards,Madan Link to comment Share on other sites More sharing options...
mrcaffeine Posted April 12, 2012 Share Posted April 12, 2012 Madan, have a look at WEB-INF/actionModel-navigation.xmlYou could replace <context name="main_view_mutton" test="!banUserRole"> with <context name="main_view_mutton" test="checkAuthenticationRoles" testArgs="ROLE_TBD"> where ROLE_TBD is the role of users allowed to access the menu. Link to comment Share on other sites More sharing options...
madanadiandhra Posted April 13, 2012 Author Share Posted April 13, 2012 Hi, I tried this way, but the problem is when we login with admin the ' View ' menu is not visible. This should not be the case right?Our requirement is to show the ' View ' menu for admin role but not for other roles. Link to comment Share on other sites More sharing options...
mrcaffeine Posted April 13, 2012 Share Posted April 13, 2012 did you replace ROLE_TBD with ROLE_ADMINISTRATOR? Link to comment Share on other sites More sharing options...
madanadiandhra Posted April 13, 2012 Author Share Posted April 13, 2012 Hi, No i didn't give Role_administrator. Its working fine now i haven't replace it as u said, but i have created another context name and given my cutomized role in test args like this <context name="main_view_mutton" test="checkAuthenticationRoles" testArgs="ROLE_OP"> and its working fine, and i thank for your assistance Regards,Madan Link to comment Share on other sites More sharing options...
prasad.basutkar Posted December 10, 2012 Share Posted December 10, 2012 How to add custom condition to hide the link after role validation passes, if someone wants to hide some menu link for french(selected) locale which are visible for english locale then where to add boolean method(which we assigned to test attribute of condition tag)? 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