Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-47265] - Stop using permission display logic from Matrix Auth
  • Loading branch information
oleg-nenashev committed Oct 4, 2017
1 parent b32e276 commit 7205930
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -863,7 +863,7 @@ public boolean showPermission(String type, Permission p, boolean showDangerous)
// When disabled, never show the permissions
return showDangerous && DangerousPermissionHandlingMode.getCurrent() != DangerousPermissionHandlingMode.DISABLED;
}
return showPermission(p);
return p.getEnabled();
}
else if (type.equals(PROJECT)) {
return p == Item.CREATE && isCreateAllowed() && p.getEnabled() || p != Item.CREATE && p.getEnabled();
Expand Down

0 comments on commit 7205930

Please sign in to comment.