$delete = Asset_net::can_delete($conn, $id); $p_plugin = Session::am_i_admin(); $deploy_agent = FALSE; } else { if (Asset_group::is_in_db($conn, $id)) { $asset_type = 'group'; Session::logcheck('environment-menu', 'PolicyHosts'); $breadcrumb = array('section' => _('Groups'), 'current' => _('Group Details')); $gobj = new Asset_group($id); try { $edit = $gobj->can_i_edit($conn); } catch (Exception $err) { $edit = FALSE; } try { $delete = $gobj->can_delete_group($conn); } catch (Exception $err) { $delete = FALSE; } $p_plugin = Session::am_i_admin(); $deploy_agent = FALSE; } else { $error = _('Invalid Asset ID'); Av_exception::throw_error(Av_exception::USER_ERROR, $error); } } } $perms = array('admin' => Session::am_i_admin(), 'delete' => $delete, 'edit' => $edit, 'vulnerabilities' => Session::logcheck_bool('environment-menu', 'EventsVulnerabilitiesScan'), 'alarms' => Session::logcheck_bool('analysis-menu', 'ControlPanelAlarms'), 'events' => Session::logcheck_bool('analysis-menu', 'EventsForensics'), 'netflows' => Session::logcheck_bool('environment-menu', 'MonitorsNetflows'), 'nmap' => Session::logcheck_bool('environment-menu', 'ToolsScan'), 'availability' => Session::logcheck_bool('environment-menu', 'MonitorsAvailability'), 'hids' => Session::logcheck_bool('environment-menu', 'EventsHids') || Session::logcheck_bool('environment-menu', 'EventsHidsConfig'), 'deploy_agent' => $deploy_agent, 'plugins' => $p_plugin); Filter_list::save_items($conn, $asset_type, $assets = array($id)); $db->close(); ?>