mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 07:44:35 +02:00
Fixed problems with permissions in menu. Tiquet: #3083
This commit is contained in:
parent
c3e0ccb126
commit
d1d30d721b
@ -39,7 +39,6 @@ if (check_acl ($config['id_user'], 0, "AW") || check_acl ($config['id_user'], 0,
|
|||||||
if (check_acl ($config["id_user"], 0, "PM")) {
|
if (check_acl ($config["id_user"], 0, "PM")) {
|
||||||
$sub["godmode/agentes/fields_manager"]["text"] = __('Custom fields');
|
$sub["godmode/agentes/fields_manager"]["text"] = __('Custom fields');
|
||||||
$sub["godmode/agentes/fields_manager"]["id"] = 'Custom fields';
|
$sub["godmode/agentes/fields_manager"]["id"] = 'Custom fields';
|
||||||
}
|
|
||||||
|
|
||||||
$sub["godmode/modules/manage_nc_groups"]["text"] = __('Component groups');
|
$sub["godmode/modules/manage_nc_groups"]["text"] = __('Component groups');
|
||||||
$sub["godmode/modules/manage_nc_groups"]["id"] = 'Component groups';
|
$sub["godmode/modules/manage_nc_groups"]["id"] = 'Component groups';
|
||||||
@ -51,7 +50,6 @@ if (check_acl ($config['id_user'], 0, "AW") || check_acl ($config['id_user'], 0,
|
|||||||
$sub["godmode/modules/module_list"]["text"] = __('Module types');
|
$sub["godmode/modules/module_list"]["text"] = __('Module types');
|
||||||
$sub["godmode/modules/module_list"]["id"] = 'Module types';
|
$sub["godmode/modules/module_list"]["id"] = 'Module types';
|
||||||
|
|
||||||
if (check_acl ($config["id_user"], 0, "PM")) {
|
|
||||||
$sub["godmode/groups/modu_group_list"]["text"] = __('Module groups');
|
$sub["godmode/groups/modu_group_list"]["text"] = __('Module groups');
|
||||||
$sub["godmode/groups/modu_group_list"]["id"] = 'Module groups';
|
$sub["godmode/groups/modu_group_list"]["id"] = 'Module groups';
|
||||||
}
|
}
|
||||||
@ -85,33 +83,38 @@ if (check_acl ($config['id_user'], 0, "UM")) {
|
|||||||
$sub['godmode/users/profile_list']['id'] = 'Profile management';
|
$sub['godmode/users/profile_list']['id'] = 'Profile management';
|
||||||
$sub["godmode/groups/group_list"]["text"] = __('Manage agents groups');
|
$sub["godmode/groups/group_list"]["text"] = __('Manage agents groups');
|
||||||
$sub["godmode/groups/group_list"]["id"] = 'Manage agents groups';
|
$sub["godmode/groups/group_list"]["id"] = 'Manage agents groups';
|
||||||
|
|
||||||
|
if (check_acl ($config['id_user'], 0, "PM")) {
|
||||||
// Tag
|
// Tag
|
||||||
$sub["godmode/tag/tag"]["text"] = __('Module tags');
|
$sub["godmode/tag/tag"]["text"] = __('Module tags');
|
||||||
$sub["godmode/tag/tag"]["id"] = 'Module tags';
|
$sub["godmode/tag/tag"]["id"] = 'Module tags';
|
||||||
$sub["godmode/tag/tag"]["subsecs"] = "godmode/tag/edit_tag";
|
$sub["godmode/tag/tag"]["subsecs"] = "godmode/tag/edit_tag";
|
||||||
|
|
||||||
enterprise_hook ('enterprise_acl_submenu');
|
enterprise_hook ('enterprise_acl_submenu');
|
||||||
|
}
|
||||||
|
|
||||||
$menu_godmode["gusuarios"]["sub"] = $sub;
|
$menu_godmode["gusuarios"]["sub"] = $sub;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$menu_godmode["gmodules"]["text"] = __('Configuration');
|
||||||
|
$menu_godmode["gmodules"]["sec2"] = "godmode/modules/manage_network_templates";
|
||||||
|
$menu_godmode["gmodules"]["id"] = "god-configuration";
|
||||||
|
|
||||||
|
$sub = array ();
|
||||||
if (check_acl ($config['id_user'], 0, "PM")) {
|
if (check_acl ($config['id_user'], 0, "PM")) {
|
||||||
$menu_godmode["gmodules"]["text"] = __('Configuration');
|
|
||||||
$menu_godmode["gmodules"]["sec2"] = "godmode/modules/manage_network_templates";
|
|
||||||
$menu_godmode["gmodules"]["id"] = "god-configuration";
|
|
||||||
|
|
||||||
$sub = array ();
|
|
||||||
|
|
||||||
$sub["godmode/modules/manage_network_components"]["text"] = __('Network components');
|
$sub["godmode/modules/manage_network_components"]["text"] = __('Network components');
|
||||||
$sub["godmode/modules/manage_network_components"]["id"] = 'Network components';
|
$sub["godmode/modules/manage_network_components"]["id"] = 'Network components';
|
||||||
enterprise_hook ('components_submenu');
|
enterprise_hook ('components_submenu');
|
||||||
$sub["godmode/modules/manage_network_templates"]["text"] = __('Module templates');
|
$sub["godmode/modules/manage_network_templates"]["text"] = __('Module templates');
|
||||||
$sub["godmode/modules/manage_network_templates"]["id"] = 'Module templates';
|
$sub["godmode/modules/manage_network_templates"]["id"] = 'Module templates';
|
||||||
enterprise_hook ('inventory_submenu');
|
enterprise_hook ('inventory_submenu');
|
||||||
if (check_acl ($config['id_user'], 0, "AW")) {
|
}
|
||||||
|
if (check_acl ($config['id_user'], 0, "AW")) {
|
||||||
enterprise_hook ('policies_menu');
|
enterprise_hook ('policies_menu');
|
||||||
}
|
}
|
||||||
enterprise_hook('agents_submenu');
|
enterprise_hook('agents_submenu');
|
||||||
if (check_acl ($config['id_user'], 0, "AW")) {
|
if (check_acl ($config['id_user'], 0, "AW")) {
|
||||||
$sub["gmassive"]["text"] = __('Bulk operations');
|
$sub["gmassive"]["text"] = __('Bulk operations');
|
||||||
$sub["gmassive"]["id"] = 'Bulk operations';
|
$sub["gmassive"]["id"] = 'Bulk operations';
|
||||||
$sub["gmassive"]["type"] = "direct";
|
$sub["gmassive"]["type"] = "direct";
|
||||||
@ -129,12 +132,10 @@ if (check_acl ($config['id_user'], 0, "PM")) {
|
|||||||
enterprise_hook('massivesatellite_submenu');
|
enterprise_hook('massivesatellite_submenu');
|
||||||
|
|
||||||
$sub["gmassive"]["sub2"] = $sub2;
|
$sub["gmassive"]["sub2"] = $sub2;
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
$menu_godmode["gmodules"]["sub"] = $sub;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$menu_godmode["gmodules"]["sub"] = $sub;
|
||||||
|
|
||||||
if (check_acl ($config['id_user'], 0, "LM") || check_acl ($config['id_user'], 0, "AD")) {
|
if (check_acl ($config['id_user'], 0, "LM") || check_acl ($config['id_user'], 0, "AD")) {
|
||||||
$menu_godmode["galertas"]["text"] = __('Alerts');
|
$menu_godmode["galertas"]["text"] = __('Alerts');
|
||||||
$menu_godmode["galertas"]["sec2"] = "godmode/alerts/alert_list";
|
$menu_godmode["galertas"]["sec2"] = "godmode/alerts/alert_list";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user