IDEMPIERE-4229 Approval Workflow Node does not validate inactive UserRoles / integrate patch from Angel Lara

This commit is contained in:
Carlos Ruiz 2020-04-02 19:02:13 +02:00
parent 628103ef94
commit 9dcb12f394
1 changed files with 1 additions and 1 deletions

View File

@ -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;