ahamdaoui Posted September 11, 2013 Share Posted September 11, 2013 Hello,I m using Jaspersoft Version 5.I want to hide menus / bleu band for the Role_USER but not For the role_Administrator. For that, I used the procedure page 153-158 "customizing Menus".So I modified the 3files : actionModel-navigation.xml / homeforNonDemo.jsp / applicationcontext-security.xmlbut i get some problems :Even if i put that : <context name="main_home_mutton" test="checkAuthenticationRoles" testArgs="ROLE_ADMINISTRATOR"/> <context name="main_library_mutton" test="checkAuthenticationRoles" testArgs="ROLE_ADMINISTRATOR"/> I still see the library. So how can I hide it fot the user? and i got a message 'Access Denied" . So how to not show that? I my post is not clear plz say it to me to give more explanationthanks a lotThe attatchment shows what i get. Link to comment Share on other sites More sharing options...
sourabh.g Posted September 18, 2013 Share Posted September 18, 2013 Hello Ahamdaoui,This is very simple you dont need to change more file.Just change in decorator.jsp find in web-inf/decorator/decorator.jsp and find the tag where menu is started and use <auth:usernot=jasperadmin> somthing like this and add tag for menu authontication and define only jasperadmin user this way u can easily hide menu bar from other user.may this help u because i have done thisSaurabh consultant 101 Link to comment Share on other sites More sharing options...
ahamdaoui Posted November 25, 2013 Author Share Posted November 25, 2013 thanks a lot Saurabh, I did not see your answer before...I' ll try it..and tell youAsma 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