logout button should be provided when the user is authenticated, as authenticated user may not be an admin user.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3217 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2007-04-23 01:49:49 +00:00
1 parent 5a9cf6d761
commit bd15ebda3c
1 file changed
+1 -2
@@ -56,8 +56,7 @@
</form-->
<j:if test="${app.useSecurity}">
<j:choose>
<!-- getUserPrincipal() call needed to work around http://jira.codehaus.org/browse/JETTY-234 -->
<j:when test="${request.userPrincipal!=null and request.isUserInRole('admin')}">
<j:when test="${request.userPrincipal!=null}">
<a style="color:white" href="${rootURL}/logout"><b>logout</b></a>
</j:when>
<j:otherwise>