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,11 +2621,15 @@ public final class MRole extends X_AD_Role
} }
s_log.info("Include "+role); s_log.info("Include "+role);
if(role.isActive()){
this.m_includedRoles.add(role); this.m_includedRoles.add(role);
role.setParentRole(this); role.setParentRole(this);
role.m_includedSeqNo = seqNo; role.m_includedSeqNo = seqNo;
} }
}
/** /**
* *
* @return unmodifiable list of included roles * @return unmodifiable list of included roles