[Vtigercrm-commits] [vtiger-commits] r5472 - in /vtigercrm/trunk/modules/Vendors: DetailView.php ListView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Apr 27 04:29:29 EDT 2006
Author: saraj
Date: Thu Apr 27 02:29:25 2006
New Revision: 5472
Log:
Added the Security Check for Buttons in List/Detail View of Vendors Module - Ahmed
Modified:
vtigercrm/trunk/modules/Vendors/DetailView.php
vtigercrm/trunk/modules/Vendors/ListView.php
Modified: vtigercrm/trunk/modules/Vendors/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/Vendors/DetailView.php (original)
+++ vtigercrm/trunk/modules/Vendors/DetailView.php Thu Apr 27 02:29:25 2006
@@ -43,9 +43,9 @@
$smarty->assign("CUSTOMFIELD", $cust_fld);
-if(isPermitted("Vendors",1,$_REQUEST['record']) == 'yes')
+if(isPermitted("Vendors","VendorEditView",$_REQUEST['record']) == 'yes')
$smarty->assign("EDIT_DUPLICATE","permitted");
-if(isPermitted("Vendors",2,$_REQUEST['record']) == 'yes')
+if(isPermitted("Vendors","DeleteVendor",$_REQUEST['record']) == 'yes')
$smarty->assign("DELETE","permitted");
Modified: vtigercrm/trunk/modules/Vendors/ListView.php
==============================================================================
--- vtigercrm/trunk/modules/Vendors/ListView.php (original)
+++ vtigercrm/trunk/modules/Vendors/ListView.php Thu Apr 27 02:29:25 2006
@@ -66,7 +66,7 @@
//<<<<<customview>>>>>
// Buttons and View options
-if(isPermitted('Vendors',2,'') == 'yes')
+if(isPermitted('Vendors','DeleteVendor','') == 'yes')
{
$other_text['del'] = $app_strings[LBL_MASS_DELETE];
}
More information about the vtigercrm-commits
mailing list