[Vtigercrm-commits] [vtiger-commits] r5470 - in /vtigercrm/trunk/modules/Quotes: DetailView.php ListView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Apr 27 04:25:48 EDT 2006
Author: saraj
Date: Thu Apr 27 02:25:42 2006
New Revision: 5470
Log:
Added the Security Check for Buttons in List/Detail View of Quotes Module - Ahmed
Modified:
vtigercrm/trunk/modules/Quotes/DetailView.php
vtigercrm/trunk/modules/Quotes/ListView.php
Modified: vtigercrm/trunk/modules/Quotes/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/Quotes/DetailView.php (original)
+++ vtigercrm/trunk/modules/Quotes/DetailView.php Thu Apr 27 02:25:42 2006
@@ -66,19 +66,19 @@
$category = getParentTab();
$smarty->assign("CATEGORY",$category);
-if(isPermitted("Quotes",1,$_REQUEST['record']) == 'yes')
+if(isPermitted("Quotes","EditView",$_REQUEST['record']) == 'yes')
$smarty->assign("EDIT_DUPLICATE","permitted");
$smarty->assign("CREATEPDF","permitted");
-if(isPermitted("SalesOrder",1,$_REQUEST['record']) == 'yes')
+if(isPermitted("SalesOrder","EditView",$_REQUEST['record']) == 'yes')
$smarty->assign("CONVERTSALESORDER","permitted");
-if(isPermitted("Invoice",1,$_REQUEST['record']) == 'yes')
+if(isPermitted("Invoice","EditView",$_REQUEST['record']) == 'yes')
$smarty->assign("CONVERTINVOICE","permitted");
-if(isPermitted("Quotes",2,$_REQUEST['record']) == 'yes')
+if(isPermitted("Quotes","Delete",$_REQUEST['record']) == 'yes')
$smarty->assign("DELETE","permitted");
Modified: vtigercrm/trunk/modules/Quotes/ListView.php
==============================================================================
--- vtigercrm/trunk/modules/Quotes/ListView.php (original)
+++ vtigercrm/trunk/modules/Quotes/ListView.php Thu Apr 27 02:25:42 2006
@@ -69,7 +69,7 @@
//<<<<<customview>>>>>
$smarty->assign("CHANGE_OWNER",getUserslist());
-if(isPermitted('Quotes',2,'') == 'yes')
+if(isPermitted('Quotes','Delete','') == 'yes')
{
$other_text['del'] = $app_strings[LBL_MASS_DELETE];
}
More information about the vtigercrm-commits
mailing list