<?php

defined('C5_EXECUTE') or die("Access Denied.");
?>

<?php 
$included = $permissionAccess->getAccessListItems(PermissionKey::ACCESS_TYPE_INCLUDE);
$excluded = $permissionAccess->getAccessListItems(PermissionKey::ACCESS_TYPE_EXCLUDE);
$gl = new GroupList();
$gl->filter('gID', REGISTERED_GROUP_ID, '>');
$gl->sortBy('gID', 'asc');
$gIDs = $gl->getResults();
$gArray = array();
foreach ($gIDs as $gID) {
    $groups[] = Group::getByID($gID['gID']);
}
$form = Loader::helper('form');
?>

<?php 
if (count($included) > 0 || count($excluded) > 0) {
    ?>

<?php 
    if (count($included) > 0) {
        ?>

<h3><?php 
        echo t('Who can assign what?');
        ?>
</h3>