The process of blocking Leaves by the HR has been updated so, when a User send Leaves to Block only the HR from the same company can approve. This way others HR from different companies will not be able to see or block Leaves from users that are not from his responsibility.
Note: In order to the HR sees the Leaves he must be in the chain of responsibility, in this case the user HR does not need to belong to the same company or the HR must have access to the companies that he is suppose to block.
- Set on User the role "AllUsers" and "VacationBlock"
- Set on User the companies that he needs to have access
- Enter with a User.
- Go to the Leaves module.
- Set and send Leaves to approve.
- Approve the leaves with the User Responsible.
- Enter with the HR user.
- Verify that in the tab Leaves to Block, the leaves approved in 4 appear.