Merge branch 'ent-4653-item-agent-modules-blank-on-template' into 'develop'
Removed item agent/modules from templates See merge request artica/pandorafms!2760
This commit is contained in:
commit
f8dc0596ba
|
@ -778,13 +778,15 @@ function reports_get_report_types($template=false, $not_editor=false)
|
||||||
'name' => __('Exception'),
|
'name' => __('Exception'),
|
||||||
];
|
];
|
||||||
if ($config['metaconsole'] != 1) {
|
if ($config['metaconsole'] != 1) {
|
||||||
$types['agent_module'] = [
|
if (!$template) {
|
||||||
'optgroup' => __('Grouped'),
|
$types['agent_module'] = [
|
||||||
'name' => __('Agents/Modules'),
|
'optgroup' => __('Grouped'),
|
||||||
];
|
'name' => __('Agents/Modules'),
|
||||||
|
];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Only pandora managers have access to the whole database
|
// Only pandora managers have access to the whole database.
|
||||||
if (check_acl($config['id_user'], 0, 'PM')) {
|
if (check_acl($config['id_user'], 0, 'PM')) {
|
||||||
$types['sql'] = [
|
$types['sql'] = [
|
||||||
'optgroup' => __('Grouped'),
|
'optgroup' => __('Grouped'),
|
||||||
|
|
Loading…
Reference in New Issue