Skip to content

Commit

Permalink
just in case
Browse files Browse the repository at this point in the history
  • Loading branch information
evernat committed Dec 22, 2020
1 parent da38b54 commit bbc7f81
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public String getMonitoringUrl() {
*/
protected boolean hasMonitoringPermissions() {
final Jenkins jenkins = Jenkins.getInstance();
return jenkins.hasPermission(Jenkins.ADMINISTER)
|| jenkins.hasPermission(SystemReadPermission.SYSTEM_READ);
return jenkins.hasPermission(Jenkins.ADMINISTER) || SystemReadPermission.SYSTEM_READ != null
&& jenkins.hasPermission(SystemReadPermission.SYSTEM_READ);
}
}

0 comments on commit bbc7f81

Please sign in to comment.