IDEMPIERE-5380 StackOverflowError when try to login in application with substitute user (FHCA-3828) (#1437)

This commit is contained in:
Carlos Ruiz 2022-08-13 04:15:31 +02:00 committed by GitHub
parent 05dcc275a9
commit 165229d2db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -2897,9 +2897,9 @@ public final class MRole extends X_AD_Role implements ImmutablePOSupport
*/ */
private void loadSubstitutedRoles(boolean reload) private void loadSubstitutedRoles(boolean reload)
{ {
if (this.m_parent != null) if (this.m_parent != null || isMasterRole())
{ {
// load only if this is logged role (no parent roles) // load only if this is logged role (no parent or master roles)
return; return;
} }
// //