<isAdmin> tag needs to go away eventually, but in the mean time, testing the ADMIN permission is better than checking its role.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6634 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2008-01-13 21:53:44 +00:00
1 parent 605101af4b
commit c3ca1132d7
1 file changed
+3 -11
@@ -1,13 +1,5 @@
<j:jelly xmlns:j="jelly:core" xmlns:d="jelly:define" xmlns:s="jelly:stapler">
<j:choose>
<j:when test="${app.useSecurity}">
<s:isUserInRole role="admin">
<d:invokeBody />
</s:isUserInRole>
</j:when>
<!-- if the security is disabled, show it anyway -->
<j:otherwise>
<d:invokeBody />
</j:otherwise>
</j:choose>
<j:if test="${h.hasPermission(app.ADMINISTER)}">
<d:invokeBody />
</j:if>
</j:jelly>