Skip to content

Cancel button shown in Backend order creation for users who have no Magento_Sales::cancel rights #40118

@NEraZeLT

Description

@NEraZeLT

Preconditions and environment

  • Magento version: 2.4.7-p5

Steps to reproduce

  1. Login to the Backend with a user who does not have the Magento_Sales::cancel right
  2. Navigate to Sales > Customers > > Create Order Click cancel Expected result There should not have been a cancel button because you do not have the right to do so. Actual result You see an error page because without Magento_Sales::cancel right you are not permitted to access the route sales/order_create/cancel/key/ Additional information The issing check is in magento/module-sales/Block/Adminhtml/Order/Create.php I'd overwrite that function but it's private. Release note Add check of Magento_Sales::cancel privileges to cancel button on order creation. Triage and priority [ ] Severity: S0 - Affects critical data or functionality and leaves users without workaround. [ ] Severity: S1 - Affects critical data or functionality and forces users to employ a workaround. [ ] Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround. [x] Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround. [ ] Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

Labels

Issue: needs updateAdditional information is require, waiting for responseReported on 2.4.7-p5Indicates original Magento version for the Issue report.

Type

No type

Projects

Status

Needs Update

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions