Skip to content

Commit

Permalink
MID-8982: changing of password only for selected accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
skublik committed Oct 3, 2023
1 parent bad7602 commit 5f0f79f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,8 @@ private List<StringLimitationResult> getLimitationsForActualPassword(ValuePolicy

protected void collectDeltas(Collection<ObjectDelta<? extends ObjectType>> deltas, ProtectedStringType currentPassword, ItemPath valuePath) {
List<PasswordAccountDto> selectedAccounts = Lists.newArrayList(provider.internalIterator(0, provider.size()));
selectedAccounts.removeIf(account -> !account.isSelected());

SchemaRegistry registry = getPrismContext().getSchemaRegistry();
selectedAccounts.forEach(account -> {
PrismObjectDefinition objDef = account.isMidpoint() ?
Expand Down

0 comments on commit 5f0f79f

Please sign in to comment.