[Vtigercrm-commits] [vtiger-commits] r10082 - /vtigercrm/branches/5.0.3/modules/Home/index.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Wed Jan 17 02:46:38 EST 2007


Author: richie
Date: Wed Jan 17 00:46:33 2007
New Revision: 10082

Log:
permission check added

Modified:
    vtigercrm/branches/5.0.3/modules/Home/index.php

Modified: vtigercrm/branches/5.0.3/modules/Home/index.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Home/index.php (original)
+++ vtigercrm/branches/5.0.3/modules/Home/index.php Wed Jan 17 00:46:33 2007
@@ -237,8 +237,8 @@
 	global $app_strings;
 	$userid= $current_user->id;
 	$groupids = fetchUserGroupids($userid);
-	if($groupids !='')
-	{
+        //Check for permission before constructing the query.
+	if($groupids !='' && (isPermitted('Leads','index') == "yes"  || isPermitted('Calendar','index') == "yes" || isPermitted('HelpDesk','index') == "yes"))	{
 		$query = '';
 		if(isPermitted('Leads','index') == "yes")
         	{





More information about the vtigercrm-commits mailing list