Legacy Knowledge Base
Published Jun. 30, 2025

Orders list page contains Add/Edit option for the users having only view permission

Written By

Kanchan Bisht

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How to articles!

While we make every effort to ensure this Knowledge Base is accurate,it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • If the user creates a custom regular role with some permissions, such as view permissions for the order list, the user will also be able to access the edit or add options. They can also edit the option in the payment section of this order. 

    Steps to reproduce:
    1. Create a Minium site and place one order.
    2. Navigate to Commerce> Order Management> Orders
    Here, you can see 'Edit', and 'Add' inside the order 
    3. Navigate to Control Panel> Users and Organization> Create a regular role
    Assign view permissions only in Channel and Order
    4. Now, create a new user and assign this role
    5. Login as this user to observe that they can see orders with edit or add options, which should not be the case if they only have view permission.
    Expected Behavior: The “Edit” buttons don’t appear.
    Observed Behavior: The “edit” buttons appear but are useless since the user doesn’t have permission to edit the Order

Environment

  • Liferay DXP 7.4 
  • Commerce 4.0

Resolution

  • The observed behavior is a known bug that has been addressed via COMMERCE-12025 and also included in update 92.

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base