[Vtigercrm-commits] [vtiger-commits] r7590 - /vtigercrm/trunk/include/utils/UserInfoUtil.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Tue Jun 27 13:04:00 EDT 2006


Author: richie
Date: Tue Jun 27 11:03:51 2006
New Revision: 7590

Log:
Security check for Administration module done

Modified:
    vtigercrm/trunk/include/utils/UserInfoUtil.php

Modified: vtigercrm/trunk/include/utils/UserInfoUtil.php
==============================================================================
--- vtigercrm/trunk/include/utils/UserInfoUtil.php (original)
+++ vtigercrm/trunk/include/utils/UserInfoUtil.php Tue Jun 27 11:03:51 2006
@@ -1365,7 +1365,7 @@
 	require('user_privileges/user_privileges_'.$current_user->id.'.php');
 	require('user_privileges/sharing_privileges_'.$current_user->id.'.php');
 	$permission = "no";
-	if($module == 'Users' || $module == 'Home' || $module == 'Administration' || $module == 'uploads' || $module == 'Calendar')
+	if($module == 'Users' || $module == 'Home' || $module == 'uploads' || $module == 'Calendar')
 	{
 		//These modules dont have security right now
 		$permission = "yes";
@@ -1375,7 +1375,7 @@
 	}
 	
 	//Checking the Access for the Settings Module
-	if($module == 'Settings')
+	if($module == 'Settings' || $module == 'Administration')
 	{
 		if(! $is_admin)
 		{





More information about the vtigercrm-commits mailing list