0
0
mirror of https://github.com/salesagility/SuiteCRM.git synced 2024-11-21 23:47:57 +00:00
salesagility_SuiteCRM/modules/SecurityGroups/Menu.php
2019-01-25 14:12:37 +00:00

20 lines
1.3 KiB
PHP
Executable File

<?php
if (!defined('sugarEntry') || !sugarEntry) {
die('Not A Valid Entry Point');
}
global $mod_strings;
$module_menu[] = array("index.php?module=SecurityGroups&action=EditView&return_module=SecurityGroups&return_action=DetailView", $mod_strings['LNK_NEW_RECORD'],"Create_Security_Group");
$module_menu[] = array("index.php?module=SecurityGroups&action=ListView&return_module=SecurityGroups&return_action=ListView", $mod_strings['LBL_LIST_FORM_TITLE'],"Security_Groups");
//if admin http://localhost/sugar_52/index.php?module=SecurityGroups&action=config
global $current_user;
if (is_admin($current_user)) {
global $current_language;
$admin_mod_strings = return_module_language($current_language, 'Administration');
$module_menu[] = array("index.php?module=Users&action=index&return_module=SecurityGroups&return_action=ListView", $admin_mod_strings['LBL_MANAGE_USERS_TITLE'],"Create");
$module_menu[] = array("index.php?module=ACLRoles&action=index&return_module=SecurityGroups&return_action=ListView", $admin_mod_strings['LBL_MANAGE_ROLES_TITLE'],"Role_Management");
$module_menu[] = array("index.php?module=SecurityGroups&action=config&return_module=SecurityGroups&return_action=ListView", $admin_mod_strings['LBL_CONFIG_SECURITYGROUPS_TITLE'],"Security_Suite_Settings");
}