提交 ce759e4b 编写于 作者: K kohsuke

replacing <isAdmin> with more proper permission check


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6581 71c3de6d-444a-0410-be80-ed276b4c234a
上级 f7d7507f
......@@ -29,9 +29,7 @@
<th>${%Last Failure}</th>
<th>${%Last Duration}</th>
<th><st:nbsp/></th>
<l:isAdmin><!-- build icon -->
<th width="1"><st:nbsp/></th>
</l:isAdmin>
<th width="1"><st:nbsp/></th>
</tr>
<j:forEach var="job" items="${jobs}">
......@@ -118,14 +116,12 @@
<td>
<st:nbsp/>
</td>
<l:isAdmin>
<td>
<j:if test="${job.buildable}">
<a href="${jobBaseUrl}${job.shortUrl}build">
<img src="${imagesURL}/${subIconSize}/clock.gif" title="Schedule a build" border="0" /></a>
</j:if>
</td>
</l:isAdmin>
<td>
<j:if test="${job.buildable and job.hasPermission(job.BUILD)}">
<a href="${jobBaseUrl}${job.shortUrl}build">
<img src="${imagesURL}/${subIconSize}/clock.gif" title="Schedule a build" border="0" /></a>
</j:if>
</td>
</tr>
</j:forEach>
</x:element>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册