Sometimes it is useful to remove certain elements from JIRA's user interface if the user does not belong to a certain group. Most of the time this can be achieved by editing certain JSP / Velocity files. The JSP files are easy to edit as they are text files, and one does not need access to JIRA's source code.
In velocity, you can hide certain elements from the UI by surrounding the relevant code with:
1 2 3
#if ($authcontext.user.inGroup('jira-administrators')) ... #end
So to hide the security level you need to edit the file and end up with something like this.
1 2 3 4 5 6 7
#if ($authcontext.user.inGroup('jira-administrators')) #if ($commentLevels && !$commentLevels.isEmpty()) #controlHeader ($action 'commentLevel' $i18n.getText('comment.viewable') false $displayParameters.get('noHeader')) ... #controlFooter ($action '' $displayParameters.get('noHeader')) #end #end
You need to update both places in the file and then restart JIRA.