Skip to content

Commit

Permalink
fix(core): add back isEnabled check to hasPermission method to preven…
Browse files Browse the repository at this point in the history
…t NPEs (#433)
  • Loading branch information
maggieneterval committed Jul 1, 2019
1 parent d6c1400 commit bd52240
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,9 @@ public boolean hasPermission(
Serializable resourceName,
String resourceType,
Object authorization) {
if (!fiatStatus.isEnabled()) {
return true;
}
return hasPermission(getUsername(authentication), resourceName, resourceType, authorization);
}

Expand Down

0 comments on commit bd52240

Please sign in to comment.