diff --git a/app/code/core/Mage/Adminhtml/Block/System/Config/Form.php b/app/code/core/Mage/Adminhtml/Block/System/Config/Form.php index 9c1e38d14f8..c12303eb9a7 100644 --- a/app/code/core/Mage/Adminhtml/Block/System/Config/Form.php +++ b/app/code/core/Mage/Adminhtml/Block/System/Config/Form.php @@ -589,6 +589,11 @@ protected function _canShowField($field) return false; } + $aclResource = trim((string) $field->acl_rescource); + if ($aclResource && !Mage::getSingleton('admin/session')->isAllowed($aclResource)) { + return false; + } + switch ($this->getScope()) { case self::SCOPE_DEFAULT: return (bool) (int) $field->show_in_default;