Skip to content
Permalink
Browse files

Modified filtering of permission groups for the slaves.

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

Signed-off-by: Oleg Nenashev <nenashev@synopsys.com>
  • Loading branch information...
oleg-nenashev committed Aug 31, 2013
1 parent 2a1062f commit 5977f9f0c7270a61294db2d9640840b629b00f8a
@@ -570,8 +570,11 @@ else if(type.equals(PROJECT)) {
groups.remove(PermissionGroup.get(View.class));
}
else if (type.equals(SLAVE)) {
groups = new ArrayList<PermissionGroup>();
groups.add(PermissionGroup.get(Computer.class));
groups = new ArrayList<PermissionGroup>(PermissionGroup.getAll());
groups.remove(PermissionGroup.get(Permission.class));
groups.remove(PermissionGroup.get(Hudson.class));
groups.remove(PermissionGroup.get(View.class));
groups.remove(PermissionGroup.get(Job.class));
}
else {
groups = null;

0 comments on commit 5977f9f

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