[Vtigercrm-commits] [vtiger-commits] r5530 - /vtigercrm/trunk/modules/Leads/ListView.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Thu Apr 27 19:35:06 EDT 2006


Author: saraj
Date: Thu Apr 27 17:35:01 2006
New Revision: 5530

Log:
Enabled the Security check for each record in list view for all modules-Ahmed

Modified:
    vtigercrm/trunk/modules/Leads/ListView.php

Modified: vtigercrm/trunk/modules/Leads/ListView.php
==============================================================================
--- vtigercrm/trunk/modules/Leads/ListView.php (original)
+++ vtigercrm/trunk/modules/Leads/ListView.php Thu Apr 27 17:35:01 2006
@@ -49,6 +49,15 @@
 $focus = new Lead();
 $smarty = new vtigerCRM_Smarty;
 $other_text=Array();
+
+if($_REQUEST['errormsg'] != '')
+{
+        $errormsg = $_REQUEST['errormsg'];
+        $smarty->assign("ERROR","The User does not have permission to delete ".$errormsg." ".$currentModule);
+}else
+{
+        $smarty->assign("ERROR","");
+}
 //<<<<<<<<<<<<<<<<<<< sorting - stored in session >>>>>>>>>>>>>>>>>>>>
 $sorder = $focus->getSortOrder();
 $order_by = $focus->getOrderBy();
@@ -180,7 +189,7 @@
 }
 if(isset($ids))
 {
-	echo "<input name='allids' type='hidden' value='".implode($ids,";")."'>";
+	$smarty->assign("ALLIDS", implode($ids,";"));
 }
 if(isPermitted("Leads","Merge") == 'yes') 
 {





More information about the vtigercrm-commits mailing list