$visualConsoleId]); $visualConsoleData = $visualConsole->toArray(); $groupId = $visualConsoleData['groupId']; // ACL. $aclRead = check_acl($config['id_user'], $groupId, 'VR'); $aclWrite = check_acl($config['id_user'], $groupId, 'VW'); $aclManage = check_acl($config['id_user'], $groupId, 'VM'); if (!$aclRead && !$aclWrite && !$aclManage) { db_pandora_audit( 'ACL Violation', 'Trying to access visual console without group access' ); exit; } echo $visualConsole; } else if ($getVisualConsoleItems === true) { $vcItems = VisualConsole::getItemsFromDB($visualConsoleId, $aclUserGroups); echo '['.implode($vcItems, ',').']'; } exit;