diff --git a/administrator/components/com_users/models/debuggroup.php b/administrator/components/com_users/models/debuggroup.php index 70617eb49785c..bb87ebade722c 100644 --- a/administrator/components/com_users/models/debuggroup.php +++ b/administrator/components/com_users/models/debuggroup.php @@ -78,19 +78,8 @@ public function getItems() foreach ($actions as $action) { $name = $action[0]; - $level = $action[1]; - - // Check that we check this action for the level of the asset. - if ($level === null || $level >= $asset->level) - { - // We need to test this action. - $asset->checks[$name] = JAccess::checkGroup($groupId, $name, $asset->name); - } - else - { - // We ignore this action. - $asset->checks[$name] = 'skip'; - } + + $asset->checks[$name] = JAccess::checkGroup($groupId, $name, $asset->name); } } } diff --git a/administrator/components/com_users/models/debuguser.php b/administrator/components/com_users/models/debuguser.php index 584a4b825253a..749ce512170b2 100644 --- a/administrator/components/com_users/models/debuguser.php +++ b/administrator/components/com_users/models/debuguser.php @@ -79,19 +79,8 @@ public function getItems() foreach ($actions as $action) { $name = $action[0]; - $level = $action[1]; - - // Check that we check this action for the level of the asset. - if ($level === null || $level >= $asset->level) - { - // We need to test this action. - $asset->checks[$name] = $user->authorise($name, $asset->name); - } - else - { - // We ignore this action. - $asset->checks[$name] = 'skip'; - } + + $asset->checks[$name] = $user->authorise($name, $asset->name); } } }