Update permissions and menu display for predicted piece sets

Description

Some minor changes to ui permissions and the predicted piece set menu now we have some additional functions:

  1. Only users with ui-serials-management.predictedpieces.edit should see "Generate receiving pieces" option

    1. In the Actions menu on the Predicted Piece Set view screen, only users with the “ui-serials-management.predictedpieces.edit” permission should see the “Generate receiving pieces” option. This is because generating receiving pieces also requires updates to the predicted piece set (to add receiving piece IDs).

    2. Currently it is possible for the user to access this without ui-serials-management.predictedpieces.edit permission resulting in successful generation of receiving pieces (as long as they have correct perms in receiving) but without the IDs being added to the receiving pieces

  2. Add new ui-serials-management.predictedpieces.delete to package.json:

    1. { "permissionName": "ui-serials-management.predictedpieces.delete", "displayName": "Serials: Delete predicted pieces", "description": "Grants all permissions included in Serials: Search & view predicted pieces plus the ability to delete predicted pieces that are not linked to receiving pieces.", "visible": true, "subPermissions": [ "ui-serials-management.predictedpieces.view", "serials-management.predictedPieceSets.delete" ] }
  3. Only users with ui-serials-management.predictedpieces.delete should see the “Delete predicted piece set” option in the Actions menu in the predicted piece set view pane (previously implemented to display if the user had ui-serials-management.predictedpieces.edit permission)

Environment

None

Potential Workaround

None

CSP Approved

None

CSP Request Details

None

CSP Rejection Details

None

defines

Checklist

hide

Activity

Show:
Done

Details

Assignee

Reporter

Priority

Sprint

Development Team

Bienenvolk

Release

Ramsons (R2 2024)

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created October 8, 2024 at 2:14 PM
Updated October 10, 2024 at 11:45 AM
Resolved October 10, 2024 at 11:45 AM
TestRail: Cases
TestRail: Runs

Flag notifications