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

Allow ACL settings for system config "groups" #4326

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
5 changes: 5 additions & 0 deletions app/code/core/Mage/Adminhtml/Block/System/Config/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,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;
Expand Down
Loading