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