Skip to content

Exception on customer edit under restricted admin access #13951

@Kasoi-free

Description

@Kasoi-free

Opening Customer Edit page while logged in under restricted admin user produces an exception:
https://screen.amasty.com/1520245526134.jpg
https://screen.amasty.com/1520245539478.jpg

Preconditions

  1. Magento 2.2.2, 2.1.5
  2. PHP 7.0, MySQL 5.6

Steps to reproduce

  1. Create a new User Role in admin area
  2. Set Custom permissions for the role like this:
    https://screen.amasty.com/1520246008492.jpg
    https://screen.amasty.com/1520246026794.jpg
    https://screen.amasty.com/1520246047704.jpg
    https://screen.amasty.com/1520246070061.jpg
  3. Add new admin user and assign him to this role
  4. Log in to admin area as this newly created restricted admin user
  5. Open Customers -> All Customers menu
  6. Hit Edit button beside any customer: https://screen.amasty.com/1520245526134.jpg

Expected result

  1. Customer Edit page opens: https://screen.amasty.com/1520245897658.jpg

Actual result

  1. Exception: https://screen.amasty.com/1520245539478.jpg
    Full exception is attached: exception (2).txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    Fixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions