[Vtigercrm-commits] [vtiger-commits] r9922 - /vtigercrm/branches/5.0.3/modules/Users/UpdateDefaultFieldLevelAccess.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon Nov 27 12:48:34 EST 2006
Author: richie
Date: Mon Nov 27 10:48:26 2006
New Revision: 9922
Log:
made the code generic for module addition -- field level security support
Modified:
vtigercrm/branches/5.0.3/modules/Users/UpdateDefaultFieldLevelAccess.php
Modified: vtigercrm/branches/5.0.3/modules/Users/UpdateDefaultFieldLevelAccess.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Users/UpdateDefaultFieldLevelAccess.php (original)
+++ vtigercrm/branches/5.0.3/modules/Users/UpdateDefaultFieldLevelAccess.php Mon Nov 27 10:48:26 2006
@@ -14,8 +14,11 @@
require_once('include/utils/utils.php');
global $adb;
-$field_module = Array('Leads','Accounts','Contacts','Potentials','HelpDesk','Products','Notes','Emails','Calendar','Events','Vendors','PriceBooks','Quotes','PurchaseOrder','SalesOrder','Invoice','Campaigns','Faq');
-foreach($field_module as $fld_module)
+//$field_module = Array('Leads','Accounts','Contacts','Potentials','HelpDesk','Products','Notes','Emails','Calendar','Events','Vendors','PriceBooks','Quotes','PurchaseOrder','SalesOrder','Invoice','Campaigns','Faq');
+
+$field_module=getFieldModuleAccessArray();
+
+foreach($field_module as $fld_module=>$fld_name)
{
$fieldListResult = getDefOrgFieldList($fld_module);
$noofrows = $adb->num_rows($fieldListResult);
More information about the vtigercrm-commits
mailing list