Skip to content
Permalink
Browse files

[JENKINS-18978] - Fixed a groups list for slaves.

Resolves: https://issues.jenkins-ci.org/browse/JENKINS-18978

Signed-off-by: Oleg Nenashev <nenashev@synopsys.com>
  • Loading branch information...
oleg-nenashev committed Dec 7, 2013
1 parent 216470b commit 6c2e145e30cac3ac5e060f0e97a719b9d264a946
@@ -41,7 +41,10 @@
import hudson.model.Hudson;
import hudson.model.Item;
import hudson.model.Job;
import hudson.model.Project;
import hudson.model.Run;
import hudson.model.View;
import hudson.scm.SCM;
import hudson.security.ACL;
import hudson.security.AccessControlled;
import hudson.security.AuthorizationStrategy;
@@ -574,7 +577,11 @@ else if (type.equals(SLAVE)) {
groups.remove(PermissionGroup.get(Permission.class));
groups.remove(PermissionGroup.get(Hudson.class));
groups.remove(PermissionGroup.get(View.class));
groups.remove(PermissionGroup.get(Job.class));

// Project, SCM and Run permissions
groups.remove(PermissionGroup.get(Item.class));
groups.remove(PermissionGroup.get(SCM.class));
groups.remove(PermissionGroup.get(Run.class));
}
else {
groups = null;

0 comments on commit 6c2e145

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