Requisition Group update does not update the assigned roles

Description

During the execution of OLMIS-4259, I noticed that after adding the facility to the requisition group, the user's roles are not updated, which means that the order can not be fulfilled.

Reproduction steps:

  1. Logging into the application and setting the "Essential Meds" program at Balaka District Warehouse as locally fulfilled;

  2. Changing the Balaka District Warehouse's requisition group to RG Essential Meds 1;

  3. Creating, submitting, authorizing and approving a requisition for Comfort Health Clinic and the Essential Meds program;

  4. Go to Orders > Fulfill Orders;

  5. An error appears:

Expected results:

  • The roles should be updated so that one can fulfill the order.

Note: We can avoid this bug by adding any role to the user and updating them.

Dev notes:

  • Probably permission strings are not regenerated after requisition group update

Environment

None

Assignee

Unassigned

Reporter

Joanna Szymańska

Epic Link

Components

Priority

Major
Configure