mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 05:22:22 +00:00
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:
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>
|
||||
|
||||
Reference in new issue
Block a user