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