We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ef20c9 commit f6a517cCopy full SHA for f6a517c
src/main/java/com/microsoft/jenkins/azuread/AzureAdMatrixAuthorizationStrategy.java
@@ -259,8 +259,12 @@ public String getDisplayName() {
259
260
@SuppressWarnings("unused") // called by jelly
261
public boolean isDisableGraphIntegration() {
262
- AzureSecurityRealm securityRealm = (AzureSecurityRealm) Jenkins.get().getSecurityRealm();
263
- return securityRealm.isDisableGraphIntegration();
+ SecurityRealm securityRealm = Jenkins.get().getSecurityRealm();
+ if (securityRealm instanceof AzureSecurityRealm) {
264
+ AzureSecurityRealm azureSecurityRealm = (AzureSecurityRealm) securityRealm;
265
+ return azureSecurityRealm.isDisableGraphIntegration();
266
+ }
267
+ return true;
268
}
269
270
0 commit comments