Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWinston Prakash2015-04-24 15:02:33 -0400
committerWinston Prakash2015-04-24 15:02:33 -0400
commit0574c8a5adf8f0aff59c68d0b52b4b01d4cfbb25 (patch)
tree1554635fe7dbd57ef597878d220ba05781cfc2f9
parentc2f7aef2f870317cd949a9627fcffd5d8ed68ad4 (diff)
downloadorg.eclipse.hudson.core-0574c8a5adf8f0aff59c68d0b52b4b01d4cfbb25.tar.gz
org.eclipse.hudson.core-0574c8a5adf8f0aff59c68d0b52b4b01d4cfbb25.tar.xz
org.eclipse.hudson.core-0574c8a5adf8f0aff59c68d0b52b4b01d4cfbb25.zip
Bug Fix: 462865 - "Tag this build" missing when using Team-based authentication
-rw-r--r--hudson-core/src/main/java/org/eclipse/hudson/security/team/TeamMember.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/hudson-core/src/main/java/org/eclipse/hudson/security/team/TeamMember.java b/hudson-core/src/main/java/org/eclipse/hudson/security/team/TeamMember.java
index 523c9519..4abc9a63 100644
--- a/hudson-core/src/main/java/org/eclipse/hudson/security/team/TeamMember.java
+++ b/hudson-core/src/main/java/org/eclipse/hudson/security/team/TeamMember.java
@@ -19,6 +19,7 @@ import hudson.model.Computer;
import hudson.model.Item;
import hudson.model.Run;
import hudson.model.View;
+import hudson.scm.SCM;
import hudson.security.Permission;
import java.io.StringWriter;
import java.util.ArrayList;
@@ -179,6 +180,7 @@ public class TeamMember {
if ("create".equals(permission)) {
grantedPermissions.add(Item.CREATE);
grantedPermissions.add(Item.EXTENDED_READ);
+ grantedPermissions.add(SCM.TAG);
}
if ("delete".equals(permission)) {
grantedPermissions.add(Item.DELETE);
@@ -186,6 +188,7 @@ public class TeamMember {
}
if ("configure".equals(permission)) {
grantedPermissions.add(Item.CONFIGURE);
+ grantedPermissions.add(SCM.TAG);
}
if ("build".equals(permission)) {
grantedPermissions.add(Item.BUILD);
@@ -234,6 +237,9 @@ public class TeamMember {
teamAdminGrantedPermissions.add(Computer.CREATE);
teamAdminGrantedPermissions.add(Computer.DELETE);
teamAdminGrantedPermissions.add(Computer.CONFIGURE);
+
+ teamAdminGrantedPermissions.add(SCM.TAG);
+
}
List<String> getPermissions() {

Back to the top