We're updating the issue view to help you get more done. 

CCE user with view only rights can make edit

Description

As the user DIVO1 who only has "View Cold Chain Equipment Inventory" right, I can select View in the CCE Inventory and click the Edit button to make edits. Since I do not have the "Edit Cold Chain Equipment Inventory" right, I should NOT be able to edit.

This is a bug caused in the UI.

Acceptance Criteria

  • (A) Users who do not have the "Edit Cold Chain Equipment Inventory" right cannot see the Edit button from the View CCE details modal. The Edit button is hidden.

  • (B) Users who do not have the "Edit Cold Chain Equipment Inventory" right cannot see the "Add Equipment" button on the CCE Inventory page. The add button is hidden.

  • (C) Users who do not have the "Edit Cold Chain Equipment Inventory" right cannot update the function status of an inventory item from the CCE Inventory list page.

    • The user can open a modal with the inventory item

    • Later tickets will address changing the icon in the inventory item list, as it should be stateful, but that is too much work to consider in the scope of this ticket

Environment

test.openlmis.org

Status

Assignee

Klaudia Pałkowska

Reporter

Sam Im

Labels

Story Points

3

Time tracking

6h

Epic Link

Components

Sprint

None

Priority

Minor