We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 13f908e + 661f7d9 commit 2af05b0Copy full SHA for 2af05b0
src/main/java/com/michelin/cio/hudson/plugins/rolestrategy/RoleBasedAuthorizationStrategy.java
@@ -45,6 +45,7 @@
45
import hudson.model.Hudson;
46
import hudson.model.Item;
47
import hudson.model.Job;
48
+import hudson.model.Node;
49
import hudson.model.Run;
50
import hudson.model.User;
51
import hudson.model.View;
@@ -181,10 +182,11 @@ public ACL getACL(@NonNull AbstractItem project) {
181
182
.newInheritingACL(getRootACL());
183
}
184
185
+
186
@Override
187
@NonNull
- public ACL getACL(@NonNull Computer computer) {
- return agentRoles.newMatchingRoleMap(computer.getName()).getACL(RoleType.Slave, computer)
188
+ public ACL getACL(@NonNull Node node) {
189
+ return agentRoles.newMatchingRoleMap(node.getNodeName()).getACL(RoleType.Slave, node)
190
191
192
0 commit comments