[Vtigercrm-commits] [vtiger-commits] r11031 - in /vtigercrm/branches/5.0.3/modules/Migration: MigrationCheck.php MigrationStep1.php PatchApply.php index.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Fri May 25 02:48:03 EDT 2007


Author: richie
Date: Fri May 25 00:47:56 2007
New Revision: 11031

Log:
* Added security check to provide migration option only for admin users

Modified:
    vtigercrm/branches/5.0.3/modules/Migration/MigrationCheck.php
    vtigercrm/branches/5.0.3/modules/Migration/MigrationStep1.php
    vtigercrm/branches/5.0.3/modules/Migration/PatchApply.php
    vtigercrm/branches/5.0.3/modules/Migration/index.php

Modified: vtigercrm/branches/5.0.3/modules/Migration/MigrationCheck.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Migration/MigrationCheck.php (original)
+++ vtigercrm/branches/5.0.3/modules/Migration/MigrationCheck.php Fri May 25 00:47:56 2007
@@ -9,6 +9,11 @@
  *
  ********************************************************************************/
 
+global $current_user;
+if($current_user->is_admin != 'on')
+{
+	die("<br><br><center>".$app_strings['LBL_PERMISSION']." <a href='javascript:window.history.back()'>".$app_strings['LBL_GO_BACK'].".</a></center>");
+}
 
 include("config.inc.php");
 $migration_log = '';

Modified: vtigercrm/branches/5.0.3/modules/Migration/MigrationStep1.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Migration/MigrationStep1.php (original)
+++ vtigercrm/branches/5.0.3/modules/Migration/MigrationStep1.php Fri May 25 00:47:56 2007
@@ -8,6 +8,12 @@
  * All Rights Reserved.
 *
  ********************************************************************************/
+
+global $current_user;
+if($current_user->is_admin != 'on')
+{
+	die("<br><br><center>".$app_strings['LBL_PERMISSION']." <a href='javascript:window.history.back()'>".$app_strings['LBL_GO_BACK'].".</a></center>");
+}
 
 //To get the Current installed MySQL path
 include("connection.php");

Modified: vtigercrm/branches/5.0.3/modules/Migration/PatchApply.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Migration/PatchApply.php (original)
+++ vtigercrm/branches/5.0.3/modules/Migration/PatchApply.php Fri May 25 00:47:56 2007
@@ -8,6 +8,12 @@
  * All Rights Reserved.
  *
 ********************************************************************************/
+
+global $current_user;
+if($current_user->is_admin != 'on')
+{
+	die("<br><br><center>".$app_strings['LBL_PERMISSION']." <a href='javascript:window.history.back()'>".$app_strings['LBL_GO_BACK'].".</a></center>");
+}
 
 include("modules/Migration/versions.php");
 $migrationlog =& LoggerManager::getLogger('MIGRATION');

Modified: vtigercrm/branches/5.0.3/modules/Migration/index.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Migration/index.php (original)
+++ vtigercrm/branches/5.0.3/modules/Migration/index.php Fri May 25 00:47:56 2007
@@ -8,6 +8,12 @@
  * All Rights Reserved.
  *
 ********************************************************************************/
+
+global $current_user;
+if($current_user->is_admin != 'on')
+{
+	die("<br><br><center>".$app_strings['LBL_PERMISSION']." <a href='javascript:window.history.back()'>".$app_strings['LBL_GO_BACK'].".</a></center>");
+}
 
 include("modules/Migration/versions.php");
 





More information about the vtigercrm-commits mailing list