提交 09ed1f9f 编写于 作者: K kohsuke

added a workaround for http://jira.codehaus.org/browse/JETTY-234


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2115 71c3de6d-444a-0410-be80-ed276b4c234a
上级 d0c04f00
......@@ -51,7 +51,8 @@
</form-->
<j:if test="${app.useSecurity}">
<j:choose>
<j:when test="${request.isUserInRole('admin')}">
<!-- getUserPrincipal() call needed to work around http://jira.codehaus.org/browse/JETTY-234 -->
<j:when test="${request.userPrincipal!=null &amp;&amp; request.isUserInRole('admin')}">
<a style="color:white" href="${rootURL}/logout"><b>logout</b></a>
</j:when>
<j:otherwise>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册