Skip to content
Permalink
Browse files

[FIXED JENKINS-14713] make Cancel independent from Build permission (#…

…882)

A script in the confluence page below will make sure configuration is
compatible after this change:
https://wiki.jenkins-ci.org/x/fAAhB
  • Loading branch information...
hangsu-ma authored and oleg-nenashev committed May 5, 2018
1 parent 8ede533 commit 081e400a5b618b035fa9c350e3bf4341d66e2476
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/src/main/java/hudson/model/Item.java
@@ -266,5 +266,5 @@ default void onCreatedFromScratch() {
Permission BUILD = new Permission(PERMISSIONS, "Build", Messages._AbstractProject_BuildPermission_Description(), Permission.UPDATE, PermissionScope.ITEM);
Permission WORKSPACE = new Permission(PERMISSIONS, "Workspace", Messages._AbstractProject_WorkspacePermission_Description(), Permission.READ, PermissionScope.ITEM);
Permission WIPEOUT = new Permission(PERMISSIONS, "WipeOut", Messages._AbstractProject_WipeOutPermission_Description(), null, Functions.isWipeOutPermissionEnabled(), new PermissionScope[]{PermissionScope.ITEM});
Permission CANCEL = new Permission(PERMISSIONS, "Cancel", Messages._AbstractProject_CancelPermission_Description(), BUILD, PermissionScope.ITEM);
Permission CANCEL = new Permission(PERMISSIONS, "Cancel", Messages._AbstractProject_CancelPermission_Description(), Permission.UPDATE, PermissionScope.ITEM);
}

0 comments on commit 081e400

Please sign in to comment.
You can’t perform that action at this time.