[Vtigercrm-commits] [vtiger-commits] r5446 - in /vtigercrm/trunk/modules/Invoice: DetailView.php ListView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Apr 27 04:04:09 EDT 2006
Author: saraj
Date: Thu Apr 27 02:04:03 2006
New Revision: 5446
Log:
Added the Security Check for Buttons in List/Detail View of Invoice Module - Ahmed
Modified:
vtigercrm/trunk/modules/Invoice/DetailView.php
vtigercrm/trunk/modules/Invoice/ListView.php
Modified: vtigercrm/trunk/modules/Invoice/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/Invoice/DetailView.php (original)
+++ vtigercrm/trunk/modules/Invoice/DetailView.php Thu Apr 27 02:04:03 2006
@@ -67,12 +67,12 @@
$category = getParentTab();
$smarty->assign("CATEGORY",$category);
-if(isPermitted("Invoice",1,$_REQUEST['record']) == 'yes')
+if(isPermitted("Invoice","EditView",$_REQUEST['record']) == 'yes')
$smarty->assign("EDIT_DUPLICATE","permitted");
$smarty->assign("CREATEPDF","permitted");
-if(isPermitted("Invoice",2,$_REQUEST['record']) == 'yes')
+if(isPermitted("Invoice","Delete",$_REQUEST['record']) == 'yes')
$smarty->assign("DELETE","permitted");
//Get the associated Products and then display above Terms and Conditions
Modified: vtigercrm/trunk/modules/Invoice/ListView.php
==============================================================================
--- vtigercrm/trunk/modules/Invoice/ListView.php (original)
+++ vtigercrm/trunk/modules/Invoice/ListView.php Thu Apr 27 02:04:03 2006
@@ -68,7 +68,7 @@
$viewnamedesc = $oCustomView->getCustomViewByCvid($viewid);
//<<<<<customview>>>>>
-if(isPermitted('Invoice',2,'') == 'yes')
+if(isPermitted('Invoice','Delete','') == 'yes')
{
$other_text['del'] = $app_strings[LBL_MASS_DELETE];
}
More information about the vtigercrm-commits
mailing list