Skip to content

Commit 1d77925

Browse files
author
Oleksii Korshenko
authored
Merge pull request #102 from magento-troll/MAGETWO-53557
MAGETWO-53557: [Github] ACL Error - Admin user can't change the attributes set #4061
2 parents 9d8b7a6 + fe8ca1c commit 1d77925

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

app/code/Magento/Catalog/Controller/Adminhtml/Product/SuggestAttributeSets.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,12 @@ public function execute()
4646
);
4747
return $resultJson;
4848
}
49+
50+
/**
51+
* @return bool
52+
*/
53+
protected function _isAllowed()
54+
{
55+
return $this->_authorization->isAllowed('Magento_Catalog::products');
56+
}
4957
}

app/code/Magento/Catalog/Controller/Adminhtml/Product/SuggestAttributes.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,12 @@ public function execute()
5050
);
5151
return $resultJson;
5252
}
53+
54+
/**
55+
* @return bool
56+
*/
57+
protected function _isAllowed()
58+
{
59+
return $this->_authorization->isAllowed('Magento_Catalog::products');
60+
}
5361
}

0 commit comments

Comments
 (0)