[Vtigercrm-commits] [vtiger-commits] r5467 - in /vtigercrm/trunk/modules/PriceBooks: DetailView.php ListView.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Thu Apr 27 04:20:28 EDT 2006


Author: saraj
Date: Thu Apr 27 02:20:23 2006
New Revision: 5467

Log:
Added the Security Check for Buttons in List/Detail View of PriceBookd Module - Ahmed

Modified:
    vtigercrm/trunk/modules/PriceBooks/DetailView.php
    vtigercrm/trunk/modules/PriceBooks/ListView.php

Modified: vtigercrm/trunk/modules/PriceBooks/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/PriceBooks/DetailView.php (original)
+++ vtigercrm/trunk/modules/PriceBooks/DetailView.php Thu Apr 27 02:20:23 2006
@@ -45,10 +45,10 @@
 
 $smarty->assign("CUSTOMFIELD", $cust_fld);
 
-if(isPermitted("PriceBooks",1,$_REQUEST['record']) == 'yes')
+if(isPermitted("PriceBooks","PriceBookEditView",$_REQUEST['record']) == 'yes')
 	$smarty->assign("EDIT_DUPLICATE","permitted");
 
-if(isPermitted("PriceBooks",2,$_REQUEST['record']) == 'yes')
+if(isPermitted("PriceBooks","DeletePriceBook",$_REQUEST['record']) == 'yes')
 	$smarty->assign("DELETE","permitted");
 
 $smarty->assign("IMAGE_PATH", $image_path);

Modified: vtigercrm/trunk/modules/PriceBooks/ListView.php
==============================================================================
--- vtigercrm/trunk/modules/PriceBooks/ListView.php (original)
+++ vtigercrm/trunk/modules/PriceBooks/ListView.php Thu Apr 27 02:20:23 2006
@@ -65,8 +65,8 @@
 $customviewcombo_html = $oCustomView->getCustomViewCombo($viewid);
 $viewnamedesc = $oCustomView->getCustomViewByCvid($viewid);
 //<<<<<customview>>>>>
-
-$other_text['del'] = $app_strings[LBL_MASS_DELETE];
+if(isPermitted('PriceBooks','DeletePriceBook','') == 'yes')
+	$other_text['del'] = $app_strings[LBL_MASS_DELETE];
 if($viewnamedesc['viewname'] == 'All')
 {
 	$smarty->assign("ALL", 'All');





More information about the vtigercrm-commits mailing list