KEYCLOAK-151 fix for account app lookup
This commit is contained in:
parent
5c541c5cf0
commit
10516a62ac
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ public class RealmManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void enableAccountManagement(RealmModel realm) {
|
private void enableAccountManagement(RealmModel realm) {
|
||||||
ApplicationModel application = realm.getApplicationById(Constants.ACCOUNT_APPLICATION);
|
ApplicationModel application = realm.getApplicationNameMap().get(Constants.ACCOUNT_APPLICATION);
|
||||||
if (application == null) {
|
if (application == null) {
|
||||||
application = realm.addApplication(Constants.ACCOUNT_APPLICATION);
|
application = realm.addApplication(Constants.ACCOUNT_APPLICATION);
|
||||||
application.addDefaultRole(Constants.ACCOUNT_PROFILE_ROLE);
|
application.addDefaultRole(Constants.ACCOUNT_PROFILE_ROLE);
|
||||||
|
|
Loading…
Reference in a new issue