[Vtigercrm-commits] [vtiger-commits] r5528 - /vtigercrm/trunk/modules/HelpDesk/ListView.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Thu Apr 27 19:31:44 EDT 2006


Author: saraj
Date: Thu Apr 27 17:31:40 2006
New Revision: 5528

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

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

Modified: vtigercrm/trunk/modules/HelpDesk/ListView.php
==============================================================================
--- vtigercrm/trunk/modules/HelpDesk/ListView.php (original)
+++ vtigercrm/trunk/modules/HelpDesk/ListView.php Thu Apr 27 17:31:40 2006
@@ -32,6 +32,14 @@
 $category = getParentTab();
 $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","");
+}
 $url_string = ''; // assigning http url string
 
 //<<<<<<<<<<<<<<<<<<< sorting - stored in session >>>>>>>>>>>>>>>>>>>>
@@ -163,7 +171,7 @@
 }
 if(isset($ids))
 {
-	echo "<input name='allids' type='hidden' value='".implode($ids,";")."'>";
+	$smarty->assign("ALLIDS", implode($ids,";"));
 }
 if(isPermitted("HelpDesk","Merge") == 'yes') 
 {





More information about the vtigercrm-commits mailing list