[Vtigercrm-commits] [vtiger-commits] r4363 - /vtigercrm/trunk/include/utils/DetailViewUtils.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue Mar 21 05:32:10 EST 2006
Author: don
Date: Tue Mar 21 03:32:02 2006
New Revision: 4363
Log:
Fixed profile issues
Modified:
vtigercrm/trunk/include/utils/DetailViewUtils.php
Modified: vtigercrm/trunk/include/utils/DetailViewUtils.php
==============================================================================
--- vtigercrm/trunk/include/utils/DetailViewUtils.php (original)
+++ vtigercrm/trunk/include/utils/DetailViewUtils.php Tue Mar 21 03:32:02 2006
@@ -849,10 +849,10 @@
function getRelatedLists($module,$focus)
{
global $adb;
- global $profile_id;
+ global $current_user;
+ require('user_privileges/user_privileges_'.$current_user->id.'.php');
+
$mod_dir_name=getModuleDirName($module);
- $tab_per_Data = getAllTabsPermission($profile_id);
- $permissionData = $_SESSION['action_permission_set'];
$cur_tab_id = getTabid($module);
$sql1 = "select * from relatedlists where tabid=".$cur_tab_id;
@@ -861,13 +861,16 @@
for($i=0; $i<$num_row; $i++)
{
$rel_tab_id = $adb->query_result($result,$i,"related_tabid");
+ echo '<BR>'.$rel_tab_id.'<BR>';
$funtion_name = $adb->query_result($result,$i,"name");
+ echo '<BR>'.$funtion_name.'<BR>';
$label = $adb->query_result($result,$i,"label");
if($rel_tab_id != 0)
{
- if($tab_per_Data[$rel_tab_id] == 0)
- {
- if($permissionData[$rel_tab_id][3] == 0)
+
+ if($profileTabsPermission[$rel_tab_id] == 0)
+ {
+ if($profileActionPermission[$rel_tab_id][3] == 0)
{
$focus_list[$label] = $focus->$funtion_name($focus->id);
}
@@ -887,7 +890,6 @@
//retreive the tabid
global $adb;
#$tabid = getTabid($module);
- global $profile_id;
global $current_user;
$label_data = Array();
More information about the vtigercrm-commits
mailing list