[Vtigercrm-commits] [vtiger-commits] r9921 - /vtigercrm/branches/5.0.3/modules/Users/DefaultFieldPermissions.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon Nov 27 12:47:40 EST 2006
Author: richie
Date: Mon Nov 27 10:47:34 2006
New Revision: 9921
Log:
made the code generic for module addition -- field level security support
Modified:
vtigercrm/branches/5.0.3/modules/Users/DefaultFieldPermissions.php
Modified: vtigercrm/branches/5.0.3/modules/Users/DefaultFieldPermissions.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Users/DefaultFieldPermissions.php (original)
+++ vtigercrm/branches/5.0.3/modules/Users/DefaultFieldPermissions.php Mon Nov 27 10:47:34 2006
@@ -31,9 +31,10 @@
$image_path=$theme_path."images/";
require_once($theme_path.'layout_utils.php');
-$field_module = Array('Leads','Accounts','Contacts','Potentials','HelpDesk','Products','Notes','Calendar','Events','Vendors','PriceBooks','Quotes','PurchaseOrder','SalesOrder','Invoice','Campaigns','Faq');
+//$field_module = Array('Leads','Accounts','Contacts','Potentials','HelpDesk','Products','Notes','Calendar','Events','Vendors','PriceBooks','Quotes','PurchaseOrder','SalesOrder','Invoice','Campaigns','Faq');
+$field_module=getFieldModuleAccessArray();
$allfields=Array();
-foreach($field_module as $fld_module)
+foreach($field_module as $fld_module=>$mod_name)
{
$fieldListResult = getDefOrgFieldList($fld_module);
$noofrows = $adb->num_rows($fieldListResult);
More information about the vtigercrm-commits
mailing list