Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ACL Error - Admin user can't change the attributes set #4061

Closed
MauroNigrele opened this issue Apr 8, 2016 · 3 comments
Closed

ACL Error - Admin user can't change the attributes set #4061

MauroNigrele opened this issue Apr 8, 2016 · 3 comments
Assignees

Comments

@MauroNigrele
Copy link

A backend user with permissions to edit products but not attributes set can't select/change the attribute set of the product that is creating/editing, since the ajax call to http://magentohost/admin/catalog/product/suggestAttributeSets/ returns a 403 Forbidden due to insufficient permissions

Steps to reproduce

  1. Log as Admin
  2. Create a new attribute set
  3. Create a basic backend user/role with just product edition permissions
  4. Log out
  5. Log in with that user
  6. Create a new product and try to change se attribute set

Expected result

  1. The user can select the any attribute set.

Actual result

  1. The suggest widget isn't populated because the ajax request fails
@piotrekkaminski
Copy link
Contributor

Internal issue MAGETWO-53557

@MauroNigrele
Copy link
Author

MauroNigrele commented May 27, 2016

- Update -
Actually, this bug also apply for any "no-admin" user regardless the permissions.

I guess that adding the below code on: \Magento\Catalog\Controller\Adminhtml\Product\SuggestAttributeSets this should be fixed:

    protected function _isAllowed()
    {
        return $this->_authorization->isAllowed('Magento_Catalog::products');
    }

Sorry no time for PR :(

okorshenko pushed a commit to isitnikov/magento2 that referenced this issue Jul 19, 2016
okorshenko pushed a commit to isitnikov/magento2 that referenced this issue Jul 19, 2016
MAGETWO-53557: [Github] ACL Error - Admin user can't change the attributes set magento#4061
@rganin
Copy link
Contributor

rganin commented Jul 22, 2016

Fixed in 2.0 branch. Not reproduced in 2.1 and develop.

@rganin rganin closed this as completed Jul 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants