diff --git a/administrator/components/com_users/tmpl/debuggroup/default.php b/administrator/components/com_users/tmpl/debuggroup/default.php index 0b053e3a33f39..298b57739ccf1 100644 --- a/administrator/components/com_users/tmpl/debuggroup/default.php +++ b/administrator/components/com_users/tmpl/debuggroup/default.php @@ -10,6 +10,7 @@ defined('_JEXEC') or die; +use Joomla\CMS\Access\Access; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\Layout\LayoutHelper; @@ -24,6 +25,14 @@ $wa = $this->getDocument()->getWebAssetManager(); $wa->useScript('table.columns'); +/** + * Get the group ID and check if the group is a super user group + * Super user groups have the core.admin action allowed by default, + * but they have not the usual access checks. +*/ +$groupId = $this->state->get('group_id'); +$isSuperUserGroup = Access::checkGroup($groupId, 'core.admin'); + ?>
@@ -49,7 +58,7 @@ items[0]->checks[$name]; - if ($check === true) : + if ($check === true || $isSuperUserGroup) : $class = 'text-success icon-check'; $button = 'btn-success'; $text = Text::_('COM_USERS_DEBUG_EXPLICIT_ALLOW'); @@ -109,7 +118,7 @@ checks[$name]; - if ($check === true) : + if ($check === true || $isSuperUserGroup) : $class = 'text-success icon-check'; $button = 'btn-success'; $text = Text::_('COM_USERS_DEBUG_EXPLICIT_ALLOW');