IDEMPIERE-366 Improve Role Inheritance / When a Master role is not active, doesnt allow to inherit permissions
This commit is contained in:
parent
29c85da0bc
commit
101fbdd5d1
|
@ -2621,9 +2621,13 @@ public final class MRole extends X_AD_Role
|
|||
}
|
||||
|
||||
s_log.info("Include "+role);
|
||||
this.m_includedRoles.add(role);
|
||||
role.setParentRole(this);
|
||||
role.m_includedSeqNo = seqNo;
|
||||
|
||||
if(role.isActive()){
|
||||
this.m_includedRoles.add(role);
|
||||
role.setParentRole(this);
|
||||
role.m_includedSeqNo = seqNo;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue