Merge pull request #103 from vrockai/KEYCLOAK-151

KEYCLOAK-151 fix for account app lookup
This commit is contained in:
stianst 2013-11-15 01:20:23 -08:00
commit 051017abc8

View file

@ -129,7 +129,7 @@ public class RealmManager {
}
private void enableAccountManagement(RealmModel realm) {
ApplicationModel application = realm.getApplicationById(Constants.ACCOUNT_APPLICATION);
ApplicationModel application = realm.getApplicationNameMap().get(Constants.ACCOUNT_APPLICATION);
if (application == null) {
application = realm.addApplication(Constants.ACCOUNT_APPLICATION);
application.addDefaultRole(Constants.ACCOUNT_PROFILE_ROLE);