Approval Workflow Node does not validate inactive UserRoles

Description

reported in forums:

https://groups.google.com/d/msg/idempiere/3ZU9f49b__A/UCfrVh6cCAAJ

Hi Community,

I noticed that if an user have multiples assigned roles he can approve a workflow if at least one of the roles he has can approve the document. But, if the records of the tab User Roles are inactive the system still consider that the user has permision to approve.

I checked the code for the class MWFActivity and it is not being verified that the registry is active. I attach the patch with the propose fix.

Environment

None

Assignee

Angel Lara

Reporter

Carlos Ruiz

Labels

None

Tested By

None

Priority

Major
Configure