parent
cac4c43052
commit
9f95b6ec63
1 changed files with 1 additions and 3 deletions
|
@ -353,9 +353,7 @@ public class MapClientProvider implements ClientProvider {
|
||||||
|
|
||||||
try (Stream<MapClientEntity> toRemove = tx.read(withCriteria(mcb))) {
|
try (Stream<MapClientEntity> toRemove = tx.read(withCriteria(mcb))) {
|
||||||
toRemove
|
toRemove
|
||||||
.map(clientEntity -> session.clients().getClientById(realm, clientEntity.getId()))
|
.forEach(clientEntity -> clientEntity.removeScopeMapping(role.getId()));
|
||||||
.filter(Objects::nonNull)
|
|
||||||
.forEach(clientModel -> clientModel.deleteScopeMapping(role));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue