X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=bin%2Fmigrate%2Fexport.php;h=7d0b582e96e020ab18b675eac5acffbf7e57c306;hb=d0fcf9dfefc3d387ebcc155521c727de22a7a718;hp=ad2c73bdd18f2c3c8d4ed64a47bff87f2d0d62e8;hpb=fa938177202b0ef376e00b6cbe8be3814ef1cd28;p=civicrm-core.git diff --git a/bin/migrate/export.php b/bin/migrate/export.php index ad2c73bdd1..7d0b582e96 100644 --- a/bin/migrate/export.php +++ b/bin/migrate/export.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 4.7 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2016 | + | Copyright CiviCRM LLC (c) 2004-2017 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -28,7 +28,7 @@ /** * * @package CRM - * @copyright CiviCRM LLC (c) 2004-2016 + * @copyright CiviCRM LLC (c) 2004-2017 */ function run() { session_start(); @@ -39,6 +39,9 @@ function run() { // this does not return on failure CRM_Utils_System::authenticateScript(TRUE); + if (!CRM_Core_Permission::check('administer CiviCRM')) { + CRM_Utils_System::authenticateAbort("User does not have required permission (administer CiviCRM).\n", TRUE); + } require_once 'CRM/Utils/Migrate/Export.php'; $export = new CRM_Utils_Migrate_Export();