';
$html[] = '';
$html[] = '';
$html[] = ' | ';
$html[] = '';
$html[] = ' ';
// If this asset's rule is allowed, but the inherited rule is deny, we have a conflict.
if (($assetRule === true) && ($inheritedRule === false)) {
$html[] = JText::_('JLIB_RULES_CONFLICT');
}
$html[] = ' | ';
// Build the Calculated Settings column.
// The inherited settings column is not displayed for the root group in global configuration.
if ($canCalculateSettings) {
$html[] = '';
// 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') !== true)
{
if ($inheritedRule === null) {
$html[] = ''.
JText::_('JLIB_RULES_NOT_ALLOWED').'';
}
else if ($inheritedRule === true)
{
$html[] = ''.
JText::_('JLIB_RULES_ALLOWED').'';
}
else if ($inheritedRule === false) {
if ($assetRule === false) {
$html[] = ''.
JText::_('JLIB_RULES_NOT_ALLOWED').'';
}
else {
$html[] = ''.
JText::_('JLIB_RULES_NOT_ALLOWED_LOCKED').'';
}
}
}
else if (!empty($component)) {
$html[] = ''.
JText::_('JLIB_RULES_ALLOWED_ADMIN').'';
}
else {
// 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') {
$html[] = ''.
JText::_('JLIB_RULES_ALLOWED').'';
}
elseif ($inheritedRule === false) {
// Other actions cannot be changed.
$html[] = ''.
JText::_('JLIB_RULES_NOT_ALLOWED_ADMIN_CONFLICT').'';
}
else {
$html[] = ''.
JText::_('JLIB_RULES_ALLOWED_ADMIN').'';
}
}
$html[] = ' | ';
}
$html[] = '
';
}
$html[] = '