You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Summary
🎫 [AEA-4755](https://nhsd-jira.digital.nhs.uk/browse/AEA-4755) PUT
/selectedRole
🧪 Regression Tests:
NHSDigital/electronic-prescription-service-api-regression-tests#237
👤 Audrey Ricker: 555043304334
`CONFIDENTIAL: PERSONAL PATIENT DATA accessed by RICKER, Audrey -
General Medical Practitioner - NO_ORG_NAME (ODS: N82668)`
👤 Curtis Rogers: 555043308597
`CONFIDENTIAL: PERSONAL PATIENT DATA accessed by ROGERS, Curtis -
Registration Authority Manager - NO_ORG_NAME (ODS: A21293)`
- Routine Change
### Details of the Fix
- If the role with access matches `selectedRoleId`, it is added to the
`currently_selected_role` but not to the `roles_with_access` array. Move
the previously selected role back into rolesWithAccess, but only if it
was set.
- The RBAC (Role-Based Access Control) User Profile Banner follows these
patterns:
- Standard user:
CONFIDENTIAL: PERSONAL PATIENT DATA accessed by LAST NAME, First Name -
RBAC Role - Site Name (ODS: ODS)
- Locum user:
CONFIDENTIAL: PERSONAL PATIENT DATA accessed by LAST NAME, First Name -
RBAC Role - Locum pharmacy (ODS: FFFFF) - Site Name (ODS: ODS Code)
- The `confirmButtonText` contains the text: "Continue to find a
prescription"
---------
Co-authored-by: Sean Steberis <[email protected]>
0 commit comments