Skip to content

Commit

Permalink
[FIXED JENKINS-20597] Only ask when user can change
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-beck committed Apr 13, 2014
1 parent cd0fae1 commit ee64eb9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion core/src/main/resources/hudson/model/Job/configure.jelly
Expand Up @@ -68,7 +68,9 @@ THE SOFTWARE.
</f:bottomButtonBar>
</j:if>
</f:form>
<st:adjunct includes="lib.form.confirm" />
<j:if test="${h.hasPermission(it,it.CONFIGURE)}">
<st:adjunct includes="lib.form.confirm" />
</j:if>
</l:main-panel>
</l:layout>
</j:jelly>
4 changes: 3 additions & 1 deletion core/src/main/resources/hudson/model/Run/configure.jelly
Expand Up @@ -43,7 +43,9 @@ THE SOFTWARE.
</f:bottomButtonBar>
</j:if>
</f:form>
<st:adjunct includes="lib.form.confirm" />
<j:if test="${h.hasPermission(it,it.UPDATE)}">
<st:adjunct includes="lib.form.confirm" />
</j:if>
</l:main-panel>
</l:layout>
</j:jelly>

0 comments on commit ee64eb9

Please sign in to comment.