Skip to content

Commit

Permalink
CLOUDTRUST-2316: fix filtering of disabled registrators (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
lagess committed Feb 13, 2020
1 parent d979b84 commit e05c306
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ public List<String> getCredentialRegistrators(){
auth.requireOneOf(AccountRoles.MANAGE_ACCOUNT, AccountRoles.VIEW_PROFILE);

return session.getContext().getRealm().getRequiredActionProviders().stream()
.filter(RequiredActionProviderModel::isEnabled)
.map(RequiredActionProviderModel::getProviderId)
.filter(providerId -> session.getProvider(RequiredActionProvider.class, providerId) instanceof CredentialRegistrator)
.collect(Collectors.toList());
Expand Down

0 comments on commit e05c306

Please sign in to comment.