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

Allow users to add new report definitions with 2.1


nicholas

Recommended Posts

Hi,

 

We'd like to allow some of our JasperServer 2.1.0 users the ability to create new report definitions (uploading new jrxml files, etc.)

 

You need to use the 'manage' repository page do to this. It appears that this page is only accessible by users with the ROLE_ADMINISTRATOR role.

 

Is there a mechanism to allow limited amounts of administration? To manage (areas of ?) the repository, but not to create/remote users, for example.

 

Much thanks,

 

Nick

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

This is a known design problem with JasperServer 2.1 (and older) that will be resolved in 3.0 via the introduction of a new repository explorer.

 

You can fix this in 2.1 by customizing the default JS permissions so that the Repository Admin page is visible to users that are not ROLE_ADMINISTRATORs.

 

To do this, you would need to

  • edit WEB-INF/classes/JI-menu.xml by moving the "menu.all" subitem from "menu.administration" (the one that points to repoAdminFlow) to "menu.repository", and adding ROLE_USER to the same subitem, and

edit WEB-INF/classes/applicationContext-security.xml by removing the "repoAdminFlow=ROLE_ADMINISTRATOR" line from the flowVoter bean.[/ul]

 

HTH,

Lucian

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