Skip to content

Report->Product->Downloads has wrong ACL #23900

@edenduong

Description

@edenduong

As my inspection, I see controller app/code/Magento/Reports/Controller/Adminhtml/Report/Product/Downloads.php has wrong acl in ADMIN_RESOURCE
=> admin with no permission "Report/Downloads" still access the Downloads Report.

Preconditions (*)

  1. Magento 2.3

Steps to reproduce (*)

  1. Go to Store->Configuration, Advanced->Admin, Set "Add Secret Key to URLs" : "No"

image

  1. Create New Role with followings Permission:
    image
    Check label "Products" but uncheck "Downloads"
  2. Create New Admin User and Assign to this role.
  3. Logout current admin user and login to New admin user.
  4. Go to this url : http://[Magento 2 domain]/admin/reports/report_product/downloads

Expected result (*)

  1. Can not access because don't have permission

Actual result (*)

  1. Still access normally

Metadata

Metadata

Assignees

Labels

Component: AdminComponent: UserFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions