Skip to content

Commit fe8ca1c

Browse files
author
Volodymyr Klymenko
committed
MAGETWO-53557: [Github] ACL Error - Admin user can't change the attributes set magento#4061
1 parent 9d8b7a6 commit fe8ca1c

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)