[Vtigercrm-commits] [vtiger-commits] r5437 - in /vtigercrm/trunk/modules/Campaigns: DetailView.php ListView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Apr 27 03:08:55 EDT 2006
Author: saraj
Date: Thu Apr 27 01:08:44 2006
New Revision: 5437
Log:
Added the Security Check for Buttons in List/Detail View of Campaigns Module - Ahmed
Modified:
vtigercrm/trunk/modules/Campaigns/DetailView.php
vtigercrm/trunk/modules/Campaigns/ListView.php
Modified: vtigercrm/trunk/modules/Campaigns/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/Campaigns/DetailView.php (original)
+++ vtigercrm/trunk/modules/Campaigns/DetailView.php Thu Apr 27 01:08:44 2006
@@ -45,10 +45,10 @@
$category = getParentTab();
$smarty->assign("CATEGORY",$category);
-if(isPermitted("Campaigns",1,$_REQUEST['record']) == 'yes')
+if(isPermitted("Campaigns","EditView",$_REQUEST['record']) == 'yes')
$smarty->assign("EDIT_DUPLICATE","permitted");
-if(isPermitted("Campaigns",2,$_REQUEST['record']) == 'yes')
+if(isPermitted("Campaigns","Delete",$_REQUEST['record']) == 'yes')
$smarty->assign("DELETE","permitted");
$smarty->assign("IMAGE_PATH", $image_path);
Modified: vtigercrm/trunk/modules/Campaigns/ListView.php
==============================================================================
--- vtigercrm/trunk/modules/Campaigns/ListView.php (original)
+++ vtigercrm/trunk/modules/Campaigns/ListView.php Thu Apr 27 01:08:44 2006
@@ -69,7 +69,7 @@
$CActionDtls = $oCustomView->getCustomActionDetails($viewid);
}
// Buttons and View options
-if(isPermitted('Campaigns',2,'') == 'yes')
+if(isPermitted('Campaigns','Delete','') == 'yes')
{
$other_text ['del']=$app_strings[LBL_MASS_DELETE];
}
More information about the vtigercrm-commits
mailing list