function create_default_roles() { // Adding MLA Roles $mlaRoles = array('Sales Administrator' => array('Accounts' => array('admin' => 100, 'access' => 89), 'Contacts' => array('admin' => 100, 'access' => 89), 'Forecasts' => array('admin' => 100, 'access' => 89), 'Leads' => array('admin' => 100, 'access' => 89), 'Quotes' => array('admin' => 100, 'access' => 89), 'Opportunities' => array('admin' => 100, 'access' => 89)), 'Marketing Administrator' => array('Accounts' => array('admin' => 100, 'access' => 89), 'Contacts' => array('admin' => 100, 'access' => 89), 'Campaigns' => array('admin' => 100, 'access' => 89), 'ProspectLists' => array('admin' => 100, 'access' => 89), 'Leads' => array('admin' => 100, 'access' => 89), 'Prospects' => array('admin' => 100, 'access' => 89)), 'Customer Support Administrator' => array('Accounts' => array('admin' => 100, 'access' => 89), 'Contacts' => array('admin' => 100, 'access' => 89), 'Bugs' => array('admin' => 100, 'access' => 89), 'Cases' => array('admin' => 100, 'access' => 89), 'KBDocuments' => array('admin' => 100, 'access' => 89))); global $db; addDefaultRoles($mlaRoles); }
echo $mod_strings['LBL_PERFORM_DONE']; } // default OOB schedulers echo $line_entry_format . $mod_strings['LBL_PERFORM_DEFAULT_SCHEDULER'] . $line_exit_format; installLog($mod_strings['LBL_PERFORM_DEFAULT_SCHEDULER']); $scheduler = new Scheduler(); installerHook('pre_createDefaultSchedulers'); $scheduler->rebuildDefaultSchedulers(); installerHook('post_createDefaultSchedulers'); ///create kb tag data. installLog("create kb tag default data"); KBTag::default_install_data(); echo $mod_strings['LBL_PERFORM_DONE']; $defaultTrackerRoles = array('Tracker' => array('Trackers' => array('admin' => 1, 'access' => 89, 'view' => 90, 'list' => 90, 'edit' => 90, 'delete' => 90, 'import' => 90, 'export' => 90), 'TrackerQueries' => array('admin' => 1, 'access' => 89, 'view' => 90, 'list' => 90, 'edit' => 90, 'delete' => 90, 'import' => 90, 'export' => 90), 'TrackerPerfs' => array('admin' => 1, 'access' => 89, 'view' => 90, 'list' => 90, 'edit' => 90, 'delete' => 90, 'import' => 90, 'export' => 90), 'TrackerSessions' => array('admin' => 1, 'access' => 89, 'view' => 90, 'list' => 90, 'edit' => 90, 'delete' => 90, 'import' => 90, 'export' => 90))); installerHook('pre_addDefaultRolesTracker'); addDefaultRoles($defaultTrackerRoles); installerHook('post_addDefaultRolesTracker'); // Adding MLA Roles installerHook('pre_addDefaultRoles'); require_once 'modules/ACLRoles/SeedRoles.php'; create_default_roles(); installerHook('post_addDefaultRoles'); // Hide certain subpanels by default require_once 'include/SubPanel/SubPanelDefinitions.php'; require_once 'modules/MySettings/TabController.php'; $disabledTabs = array("project", "bugs", "products", "contracts", "revenuelineitems"); installerHook('pre_setHiddenSubpanels'); $disabledTabsKeyArray = TabController::get_key_array($disabledTabs); SubPanelDefinitions::set_hidden_subpanels($disabledTabsKeyArray); installerHook('post_setHiddenSubpanels'); // Create the user that will be used by Snip