[Vtigercrm-commits] [vtiger-commits] r5440 - in /vtigercrm/trunk/modules/Faq: DetailView.php ListView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Apr 27 03:16:32 EDT 2006
Author: saraj
Date: Thu Apr 27 01:16:26 2006
New Revision: 5440
Log:
Added the Security Check for Buttons in List/Detail View of Faq Module - Ahmed
Modified:
vtigercrm/trunk/modules/Faq/DetailView.php
vtigercrm/trunk/modules/Faq/ListView.php
Modified: vtigercrm/trunk/modules/Faq/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/Faq/DetailView.php (original)
+++ vtigercrm/trunk/modules/Faq/DetailView.php Thu Apr 27 01:16:26 2006
@@ -73,10 +73,10 @@
$smarty->assign("MODULE","Faq");
$smarty->assign("ID", $_REQUEST['record']);
-if(isPermitted("Faq",1,$_REQUEST['record']) == 'yes')
+if(isPermitted("Faq","EditView",$_REQUEST['record']) == 'yes')
$smarty->assign("EDIT_DUPLICATE","permitted");
-if(isPermitted("Faq",2,$_REQUEST['record']) == 'yes')
+if(isPermitted("Faq","Delete",$_REQUEST['record']) == 'yes')
$smarty->assign("DELETE","permitted");
$check_button = Button_Check($module);
Modified: vtigercrm/trunk/modules/Faq/ListView.php
==============================================================================
--- vtigercrm/trunk/modules/Faq/ListView.php (original)
+++ vtigercrm/trunk/modules/Faq/ListView.php Thu Apr 27 01:16:26 2006
@@ -63,7 +63,7 @@
$_SESSION['FAQ_ORDER_BY'] = $order_by;
$_SESSION['FAQ_SORT_ORDER'] = $sorder;
//<<<<<<<<<<<<<<<<<<< sorting - stored in session >>>>>>>>>>>>>>>>>>>>
-if(isPermitted('Faq',2,'') == 'yes')
+if(isPermitted('Faq','Delete','') == 'yes')
$other_text ['del'] = $app_strings[LBL_MASS_DELETE];
More information about the vtigercrm-commits
mailing list