Jump to content

How to hide menus based on roles in jasperserver 4.5


madanadiandhra

Recommended Posts

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

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Madan, have a look at WEB-INF/actionModel-navigation.xml

You 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

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

  • 7 months later...

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...