To allow non-admin users create or edit Data Sources you have to add user's role to the corresponding flow. The steps are:
1. Open WEB-INF/applicationContext-security.xml file
2. Find the following line:
addDataSourceFlow=ROLE_ADMINISTRATOR
3. Add your custom role:
addDataSourceFlow=ROLE_CREATE_DATASOURCE,ROLE_ADMINISTRATOR
If your role is defined on an organization level and not on the root level of JRS application, you will likely have to add the pipe symbol '|' at the end of the role and add the organization ID after it, e.g.:
addDataSourceFlow=ROLE_EDIT_DATASOURCES|myOrganization,ROLE_ADMINISTRATOR
4. Save the changes, clear application server cache and restart it. Also clear browser cache to make sure the changes get applied.
Recommended Comments
There are no comments to display.
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