[Vtigercrm-commits] [vtiger-commits] r4737 - /vtigercrm/trunk/modules/Users/CreateUserPrivilegeFile.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Mar 30 02:21:36 EST 2006
Author: don
Date: Thu Mar 30 00:21:31 2006
New Revision: 4737
Log:
Removed Junk Code
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 Thu Mar 30 00:21:31 2006
@@ -43,7 +43,6 @@
$user_role_info=getRoleInformation($user_role);
$user_role_parent=$user_role_info[$user_role][1];
$userGroupFocus=new GetUserGroups();
- //$userGroupFocus->userRole=$user_role;
$userGroupFocus->getAllUserGroups($userid);
$subRoles=getRoleSubordinates($user_role);
$subRoleAndUsers=getSubordinateRoleAndUsers($user_role);
@@ -336,7 +335,7 @@
}
}
}
-//print_r(getCombinedUserGlobalPermissions($userid));
+
function getUserModuleSharingObjects($module,$userid,$def_org_share,$current_user_roles,$parent_roles,$current_user_groups)
{
global $adb;
@@ -696,11 +695,7 @@
}
$mod_share_read_permission['ROLE']=$role_read_per;
$mod_share_write_permission['ROLE']=$role_write_per;
- //echo '<BR>//////////////////////////<BR>';
- //print_r($mod_share_read_permission);
- //echo '<BR>//////////////////////////<BR>';
- //print_r($mod_share_write_permission);
-
+
//Retreiving from the grp2role sharing
$query="select datashare_grp2role.* from datashare_grp2role inner join datashare_module_rel on datashare_module_rel.shareid=datashare_grp2role.shareid where datashare_module_rel.tabid=".$mod_tabid." and datashare_grp2role.to_roleid='".$current_user_roles."'";
$result=$adb->query($query);
@@ -901,9 +896,7 @@
{
foreach($shareEntArr as $key=>$shareEntId)
{
- //echo '<BR><BR>';
- //print_r($shareEntId);
- //echo '<BR><BR>';
+
if($shareType == 'ROLE')
{
if($share_permission == 1)
@@ -1235,7 +1228,6 @@
global $adb;
require('user_privileges/sharing_privileges_'.$userid.'.php');
$tabid=getTabid($module);
- //echo $module.' '.$enttype.' '.$pertype.'<BR>';
if($enttype=='USER')
{
if($pertype =='read')
@@ -1252,10 +1244,6 @@
$user_arr=Array();
if(sizeof($var_name_arr['ROLE']) > 0)
{
- //echo '<BR>';
- //print_r('<pre>');
- //print_r($var_name_arr['ROLE']);
- //print_r('</pre>');
foreach($var_name_arr['ROLE'] as $roleid=>$roleusers)
{
@@ -1344,10 +1332,6 @@
$user_arr=Array();
if(sizeof($var_name_arr['ROLE']) > 0)
{
- //echo '<BR>';
- //print_r('<pre>');
- //print_r($var_name_arr['ROLE']);
- //print_r('</pre>');
foreach($var_name_arr['ROLE'] as $roleid=>$roleusers)
{
More information about the vtigercrm-commits
mailing list