Restricting access to projects based on reporter permissions
As we have seen in one of the previous recipes, the Browse Projects permission controls who can access a project in JIRA. In this recipe, we will set up permissions so that users can only see projects they can create issues in, and not the projects in which they cannot.
Getting ready
Since we will be making direct changes to a JIRA system file, make sure you create backups for any modified files. This recipe will also require a restart of JIRA, so plan this during a time slot that will not affect your users.
How to do it...
To restrict access to projects based on who can or cannot report criterion, you first need to enable a special permission type as follows:
Open the
permission-types.xml
file from theJIRA_INSTALL/atlassian-jira/WEB-INF/classes
directory in a text editor.Locate the following lines, and uncomment the
reportercreate
permission type as follows:<!-- Uncomment & use this permission to show only projects...