Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,8 @@ public boolean hasRepositoryPermission(GithubAuthenticationToken authenticationT
if (permission.equals(Item.READ) ||
permission.equals(Item.CONFIGURE) ||
permission.equals(Item.DELETE) ||
permission.equals(Item.EXTENDED_READ)) {
permission.equals(Item.EXTENDED_READ) ||
permission.equals(Item.CANCEL)) {
return true;
} else {
return false;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div>
If checked will use github repository permissions to determine jenkins permissions for each project.
<ul>
<li>Public projects - all authenticated users can READ. Only collaborators can BUILD, EDIT, CONFIGURE or DELETE.
<li>Private projects, only collaborators can READ, BUILD, EDIT, CONFIGURE or DELETE
<li>Public projects - all authenticated users can READ. Only collaborators can BUILD, EDIT, CONFIGURE, CANCEL or DELETE.
<li>Private projects, only collaborators can READ, BUILD, EDIT, CONFIGURE, CANCEL or DELETE
</ul>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,7 @@ public void testCanReadConfigureDeleteAProjectWithAuthenticatedUserReadPermissio
assertTrue(acl.hasPermission(authenticationToken, Item.CONFIGURE));
assertTrue(acl.hasPermission(authenticationToken, Item.DELETE));
assertTrue(acl.hasPermission(authenticationToken, Item.EXTENDED_READ));
assertTrue(acl.hasPermission(authenticationToken, Item.CANCEL));
}

@Test
Expand All @@ -480,6 +481,7 @@ public void testCannotReadConfigureDeleteAProjectWithoutToAuthenticatedUserReadP
assertFalse(acl.hasPermission(authenticationToken, Item.CONFIGURE));
assertFalse(acl.hasPermission(authenticationToken, Item.DELETE));
assertFalse(acl.hasPermission(authenticationToken, Item.EXTENDED_READ));
assertFalse(acl.hasPermission(authenticationToken, Item.CANCEL));
}

@Test
Expand Down