IDEMPIERE-5380 StackOverflowError when try to login in application with substitute user (FHCA-3828) (#1437)
This commit is contained in:
parent
05dcc275a9
commit
165229d2db
|
@ -2897,9 +2897,9 @@ public final class MRole extends X_AD_Role implements ImmutablePOSupport
|
|||
*/
|
||||
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;
|
||||
}
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue