[Vtigercrm-commits] [vtiger-commits] r5468 - in /vtigercrm/trunk/modules/Products: DetailView.php ListView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Apr 27 04:22:18 EDT 2006
Author: saraj
Date: Thu Apr 27 02:22:12 2006
New Revision: 5468
Log:
Added the Security Check for Buttons in List/Detail View of Products Module - Ahmed
Modified:
vtigercrm/trunk/modules/Products/DetailView.php
vtigercrm/trunk/modules/Products/ListView.php
Modified: vtigercrm/trunk/modules/Products/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/Products/DetailView.php (original)
+++ vtigercrm/trunk/modules/Products/DetailView.php Thu Apr 27 02:22:12 2006
@@ -50,10 +50,10 @@
$smarty->assign("CUSTOMFIELD", $cust_fld);
$smarty->assign("SINGLE_MOD","Product");
-if(isPermitted("Products",1,$_REQUEST['record']) == 'yes')
+if(isPermitted("Products","EditView",$_REQUEST['record']) == 'yes')
$smarty->assign("EDIT_DUPLICATE","permitted");
-if(isPermitted("Products",2,$_REQUEST['record']) == 'yes')
+if(isPermitted("Products","Delete",$_REQUEST['record']) == 'yes')
$smarty->assign("DELETE","permitted");
$smarty->assign("IMAGE_PATH", $image_path);
Modified: vtigercrm/trunk/modules/Products/ListView.php
==============================================================================
--- vtigercrm/trunk/modules/Products/ListView.php (original)
+++ vtigercrm/trunk/modules/Products/ListView.php Thu Apr 27 02:22:12 2006
@@ -77,7 +77,7 @@
$smarty->assign("ALL", 'All');
}
-if(isPermitted('Products',2,'') == 'yes')
+if(isPermitted('Products','Delete','') == 'yes')
{
$other_text['del'] = $app_strings[LBL_MASS_DELETE];
}
More information about the vtigercrm-commits
mailing list