File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/main/java/com/microsoft/jenkins/azuread Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 8
8
import hudson .model .AbstractItem ;
9
9
import hudson .model .Action ;
10
10
import hudson .model .Computer ;
11
- import hudson .model .Job ;
12
11
import hudson .model .RootAction ;
13
12
import hudson .model .User ;
14
13
import hudson .security .AccessControlled ;
@@ -77,8 +76,8 @@ public GraphProxy(AccessControlled accessControlled) {
77
76
@ Override
78
77
public Object getTarget () {
79
78
if (accessControlled != null ) {
80
- if (accessControlled instanceof Job ) {
81
- accessControlled .checkPermission (Job .CONFIGURE );
79
+ if (accessControlled instanceof AbstractItem ) {
80
+ accessControlled .checkPermission (AbstractItem .CONFIGURE );
82
81
} else if (accessControlled instanceof Computer ) {
83
82
accessControlled .checkPermission (Computer .CONFIGURE );
84
83
} else {
You can’t perform that action at this time.
0 commit comments