IDEMPIERE-366 Improve Role Inheritance / When a Master role is not active, doesnt allow to inherit permissions

This commit is contained in:
Juliana Corredor 2012-10-19 12:02:27 -05:00
parent 29c85da0bc
commit 101fbdd5d1
1 changed files with 7 additions and 3 deletions

View File

@ -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;
}
}
/**