I need to retest item 1 (configure) and see if that is working now.. here are
some diffs for the other two items:
Index: main/core/src/main/resources/hudson/model/AbstractBuild/index.jelly
===================================================================
— main/core/src/main/resources/hudson/model/AbstractBuild/index.jelly
(revision 9704)
+++ main/core/src/main/resources/hudson/model/AbstractBuild/index.jelly (working
copy)
@@ -22,7 +22,7 @@
</t:buildCaption>
<div>
- <t:editableDescription permission="${app.ADMINISTER}" />
+ <t:editableDescription permission="${it.project.CONFIGURE}" />
</div>
<table style="margin-top: 1em; margin-left:1em;">
Index: main/core/src/main/resources/hudson/model/Job/index.jelly
===================================================================
— main/core/src/main/resources/hudson/model/Job/index.jelly (revision 9704)
+++ main/core/src/main/resources/hudson/model/Job/index.jelly (working copy)
@@ -3,7 +3,7 @@
<st:include page="sidepanel.jelly" />
<l:main-panel>
<h1>${it.pronoun} ${it.displayName}</h1>
- <t:editableDescription permission="${app.ADMINISTER}"/>
+ <t:editableDescription permission="${it.CONFIGURE}"/>
<j:if test="${it.disabled}">
<div class="warning">
Index: main/core/src/main/resources/hudson/widgets/HistoryWidget/entry.jelly
===================================================================
— main/core/src/main/resources/hudson/widgets/HistoryWidget/entry.jelly
(revision 9704)
+++ main/core/src/main/resources/hudson/widgets/HistoryWidget/entry.jelly
(working copy)
@@ -28,9 +28,9 @@
<tr><td>
<t:buildProgressBar build="${build}"/>
</td><td style="padding:0">
- <l:isAdmin>
+ <j:if test="${it.hasAbortPermission()}">
<a href="${link}stop"><img src="${imagesURL}/16x16/stop.gif"
alt="[cancel]"/></a>
- </l:isAdmin>
+ </j:if>
</td></tr>
</table>
</td></tr>
The first two diffs seem to work.. the last one does NOT work, but shows the
right place to make a change. I wasn't sure of the right ${something} reference
for the object that can do hasAbortPermission().
Just curious if this has been tested/reproduced. We use Hudson in a managed
environment with many projects, and the admins don't want to give admin
permission to everyone. This bug prevents them from granted access to configure
jobs. Thanks!