diff --git a/libraries/joomla/form/fields/rules.php b/libraries/joomla/form/fields/rules.php index 546761d3fb7f3..54d7531784cbd 100644 --- a/libraries/joomla/form/fields/rules.php +++ b/libraries/joomla/form/fields/rules.php @@ -315,8 +315,7 @@ protected function getInput() // This is where we show the current effective settings considering currrent group, path and cascade. // Check whether this is a component or global. Change the text slightly. - - if (JAccess::checkGroup($group->value, 'core.admin', $assetId) !== true) + if (JAccess::checkGroup($group->value, $action->name, $assetId) !== true) { if ($inheritedRule === null) { @@ -346,7 +345,7 @@ protected function getInput() } else { - // Special handling for groups that have global admin because they can't be denied. + // Special handling for groups that have global admin because they can't be denied. // The admin rights can be changed. if ($action->name === 'core.admin') {