IDEMPIERE-4229 Approval Workflow Node does not validate inactive UserRoles / integrate patch from Angel Lara
This commit is contained in:
parent
628103ef94
commit
9dcb12f394
|
@ -1229,7 +1229,7 @@ public class MWFActivity extends X_AD_WF_Activity implements Runnable
|
|||
MUserRoles[] urs = MUserRoles.getOfRole(getCtx(), resp.getAD_Role_ID());
|
||||
for (int i = 0; i < urs.length; i++)
|
||||
{
|
||||
if(urs[i].getAD_User_ID() == Env.getAD_User_ID(getCtx()))
|
||||
if(urs[i].getAD_User_ID() == Env.getAD_User_ID(getCtx()) && urs[i].isActive())
|
||||
{
|
||||
autoApproval = true;
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue