KEYCLOAK-8783 only checked master and realm admin roles when roles are specified in imported realm
This commit is contained in:
parent
78b2067f73
commit
9f88abb022
1 changed files with 5 additions and 3 deletions
|
@ -531,9 +531,11 @@ public class RealmManager {
|
||||||
setupMasterAdminManagement(realm);
|
setupMasterAdminManagement(realm);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (rep.getRoles() != null) {
|
||||||
// Assert all admin roles are available once import took place. This is needed due to import from previous version where JSON file may not contain all admin roles
|
// Assert all admin roles are available once import took place. This is needed due to import from previous version where JSON file may not contain all admin roles
|
||||||
checkMasterAdminManagementRoles(realm);
|
checkMasterAdminManagementRoles(realm);
|
||||||
checkRealmAdminManagementRoles(realm);
|
checkRealmAdminManagementRoles(realm);
|
||||||
|
}
|
||||||
|
|
||||||
// Could happen when migrating from older version and I have exported JSON file, which contains "realm-management" client but not "impersonation" client
|
// Could happen when migrating from older version and I have exported JSON file, which contains "realm-management" client but not "impersonation" client
|
||||||
// I need to postpone impersonation because it needs "realm-management" client and its roles set
|
// I need to postpone impersonation because it needs "realm-management" client and its roles set
|
||||||
|
|
Loading…
Reference in a new issue