[Vtigercrm-commits] [vtiger-commits] r5663 - /vtigercrm/trunk/include/Menu.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue May 2 08:45:53 EDT 2006
Author: don
Date: Tue May 2 06:45:47 2006
New Revision: 5663
Log:
Removed the calling of permitted actions from session
Modified:
vtigercrm/trunk/include/Menu.php
Modified: vtigercrm/trunk/include/Menu.php
==============================================================================
--- vtigercrm/trunk/include/Menu.php (original)
+++ vtigercrm/trunk/include/Menu.php Tue May 2 06:45:47 2006
@@ -25,7 +25,8 @@
global $moduleList;
require_once('include/utils/utils.php');
-$permissionData = $_SESSION['action_permission_set'];
+require_once('include/utils/UserInfoUtil.php');
+
$module_menu_array = Array('Contacts' => $app_strings['LNK_NEW_CONTACT'],
'Leads'=> $app_strings['LNK_NEW_LEAD'],
@@ -74,7 +75,7 @@
if(in_array($module_display, $moduleList))
{
- if($permissionData[$tabid][1] ==0)
+ if(isPermitted($module_display,'EditView') == 'yes')
{
$tempArray = Array("index.php?module=".$module_display."&action=".$curr_action."&return_module=".$module_display."&return_action=".$ret_action.$add_url, $label);
$module_menu[$i] = $tempArray;
More information about the vtigercrm-commits
mailing list