Skip to content

Commit

Permalink
fix admin
Browse files Browse the repository at this point in the history
  • Loading branch information
sunjun-qima committed Oct 12, 2016
1 parent 001dc4e commit 179409c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/webapp/WEB-INF/views/common/IncludeNavbar.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@
<li <c:if test="${active_allCase == true}">class="active"</c:if>><a href="${pageContext.request.contextPath}/caselist/all">查看用例</a></li>
<li <c:if test="${active_fileUpload == true}">class="active"</c:if>><a href="${pageContext.request.contextPath}/fileupload">自列用例</a></li>
<li <c:if test="${active_chart == true}">class="active"</c:if>><a href="${pageContext.request.contextPath}/task/chart">执行质量</a></li>
<li <c:if test="${active_rank == true}">class="active"</c:if>><a href="${pageContext.request.contextPath}/task/rankForm">華山論劍</a></li>
<sec:authorize access="isAuthenticated()">
<sec:authentication property="principal.account" var="account" />
<c:if test="${account.role == 'cs' || account.role == 'admin' || account.username == 'funny'}">
<li <c:if test="${active_rank == true}">class="active"</c:if>><a href="${pageContext.request.contextPath}/task/rankForm">華山論劍</a></li>
</c:if>
</sec:authorize>
</ul>
<ul class="nav navbar-nav navbar-right">
<sec:authorize access="isAuthenticated()">
Expand Down

0 comments on commit 179409c

Please sign in to comment.