Disable the Account UI when the ACCOUNT feature is disabled (#48807)

Closes #48806

Signed-off-by: Martin Bartoš <mabartos@redhat.com>
This commit is contained in:
Martin Bartoš
2026-05-25 15:37:15 +02:00
committed by GitHub
parent 577bddb8e5
commit 629e86afd2
8 changed files with 118 additions and 9 deletions
@@ -132,7 +132,9 @@ public class KeycloakServerConfigBuilder {
* @return
*/
public KeycloakServerConfigBuilder featuresDisabled(Profile.Feature... features) {
this.featuresDisabled.addAll(toFeatureStrings(features));
this.featuresDisabled.addAll(Arrays.stream(features)
.map(Profile.Feature::getUnversionedKey)
.collect(Collectors.toSet()));
return this;
}