danysabo Posted April 8, 2010 Share Posted April 8, 2010 How to limit report scheduling on admin only? I found some hints on this subject, but it didn't help. I am using Jasper Server 3.7.Thanks,Daniel Link to comment Share on other sites More sharing options...
danysabo Posted April 20, 2010 Author Share Posted April 20, 2010 I'm sorry, but I really need to disable scheduling option for some users. Any guess? Thanks,Daniel Link to comment Share on other sites More sharing options...
danysabo Posted April 20, 2010 Author Share Posted April 20, 2010 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 More sharing options...
mdjj Posted April 23, 2010 Share Posted April 23, 2010 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 More sharing options...
Gaby38 Posted April 23, 2010 Share Posted April 23, 2010 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 More sharing options...
danysabo Posted June 2, 2010 Author Share Posted June 2, 2010 @mdjjI tried to change that, but no effect.@Gaby38It works only for main menu, not for popup menu. 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