[Vtigercrm-commits] [vtiger-commits] r7270 - /vtigercrm/trunk/modules/Users/CreateUserPrivilegeFile.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon Jun 19 12:20:48 EDT 2006
Author: richie
Date: Mon Jun 19 10:20:38 2006
New Revision: 7270
Log:
fixed vtiger_prefix issues
Modified:
vtigercrm/trunk/modules/Users/CreateUserPrivilegeFile.php
Modified: vtigercrm/trunk/modules/Users/CreateUserPrivilegeFile.php
==============================================================================
--- vtigercrm/trunk/modules/Users/CreateUserPrivilegeFile.php (original)
+++ vtigercrm/trunk/modules/Users/CreateUserPrivilegeFile.php Mon Jun 19 10:20:38 2006
@@ -1413,7 +1413,7 @@
global $adb;
require('user_privileges/sharing_privileges_'.$userid.'.php');
//Deleting from the existing vtiger_tables
- $table_arr=Array('tmp_read_user_sharing_per', 'tmp_write_user_sharing_per','tmp_read_group_sharing_per','tmp_write_group_sharing_per','tmp_read_user_rel_sharing_per','tmp_write_user_rel_sharing_per','tmp_read_group_rel_sharing_per','tmp_write_group_rel_sharing_per');
+ $table_arr=Array('vtiger_tmp_read_user_sharing_per', 'vtiger_tmp_write_user_sharing_per','vtiger_tmp_read_group_sharing_per','vtiger_tmp_write_group_sharing_per','vtiger_tmp_read_user_rel_sharing_per','vtiger_tmp_write_user_rel_sharing_per','vtiger_tmp_read_group_rel_sharing_per','vtiger_tmp_write_group_rel_sharing_per');
foreach($table_arr as $tabname)
{
$query = "delete from ".$tabname." where userid=".$userid;
@@ -1454,12 +1454,12 @@
{
if($pertype =='read')
{
- $table_name='tmp_read_user_sharing_per';
+ $table_name='vtiger_tmp_read_user_sharing_per';
$var_name=$module.'_share_read_permission';
}
elseif($pertype == 'write')
{
- $table_name='tmp_write_user_sharing_per';
+ $table_name='vtiger_tmp_write_user_sharing_per';
$var_name=$module.'_share_write_permission';
}
$var_name_arr=$$var_name;
@@ -1502,12 +1502,12 @@
{
if($pertype =='read')
{
- $table_name='tmp_read_group_sharing_per';
+ $table_name='vtiger_tmp_read_group_sharing_per';
$var_name=$module.'_share_read_permission';
}
elseif($pertype == 'write')
{
- $table_name='tmp_write_group_sharing_per';
+ $table_name='vtiger_tmp_write_group_sharing_per';
$var_name=$module.'_share_write_permission';
}
$var_name_arr=$$var_name;
@@ -1542,12 +1542,12 @@
{
if($pertype =='read')
{
- $table_name='tmp_read_user_rel_sharing_per';
+ $table_name='vtiger_tmp_read_user_rel_sharing_per';
$var_name=$module.'_'.$relmodule.'_share_read_permission';
}
elseif($pertype == 'write')
{
- $table_name='tmp_write_user_rel_sharing_per';
+ $table_name='vtiger_tmp_write_user_rel_sharing_per';
$var_name=$module.'_'.$relmodule.'_share_write_permission';
}
$var_name_arr=$$var_name;
@@ -1590,12 +1590,12 @@
{
if($pertype =='read')
{
- $table_name='tmp_read_group_rel_sharing_per';
+ $table_name='vtiger_tmp_read_group_rel_sharing_per';
$var_name=$module.'_'.$relmodule.'_share_read_permission';
}
elseif($pertype == 'write')
{
- $table_name='tmp_write_group_rel_sharing_per';
+ $table_name='vtiger_tmp_write_group_rel_sharing_per';
$var_name=$module.'_'.$relmodule.'_share_write_permission';
}
$var_name_arr=$$var_name;
More information about the vtigercrm-commits
mailing list