use logged in realm as default (#22460)
This commit is contained in:
parent
b216895baf
commit
b4650b7742
1 changed files with 1 additions and 1 deletions
|
@ -231,7 +231,7 @@ public class AdminConsole {
|
|||
if (createRealmRole != null) {
|
||||
createRealm = user.hasRole(createRealmRole);
|
||||
}
|
||||
addMasterRealmAccess(user, currentRealm, realmAccess);
|
||||
addMasterRealmAccess(user, currentRealm != null ? currentRealm : realm.getName(), realmAccess);
|
||||
} else {
|
||||
logger.debug("setting up realm access for a realm user");
|
||||
addRealmAccess(realm, user, realmAccess);
|
||||
|
|
Loading…
Reference in a new issue