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

How to limit report scheduling


danysabo

Recommended Posts

  • 2 weeks later...
  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

I fixed this temporary using with adding the following parts in file reportJobs.jsp:

 

<%@ taglib uri="http://www.springframework.org/security/tags" prefix="authz"%>...<authz:authorize ifAllGranted="ROLE_ADMINISTRATOR">...</authz:authorize>

and user can't see 'Schedule Job' and 'Run Now' buttons.

But I would like to remove menu item 'Schedule...' from popup menu when user is not administrator. Any idea?

Link to comment
Share on other sites

I wrote something similar on a previous thread see http://jasperforge.org/plugins/espforum/view.php?group_id=112&forumid=102&topicid=68898 (note the bit about avoiding javascript errors). For the pop up menu you might want to look at doing something similar on \WEB-INF\jsp\repositoryRepositoryExplorerResourcePopUpMenu.jsp. Note this was on JS 3.5 so may be slightly different on 3.7
Link to comment
Share on other sites

Daniel,

Have a look at the "JI-menu.xml" file in "$Tomcat/webapps/jasperserver/WEB-INF/classes" directory. You should be able to invalidate sub-menus for "ROLE_USER".

As for me, I did that for menus "menu.repository" and "menu.administration" and it works fine.

 

Link to comment
Share on other sites

  • 1 month 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...