projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #9587 from colemanw/CRM-19802
[civicrm-core.git]
/
bin
/
migrate
/
export.php
diff --git
a/bin/migrate/export.php
b/bin/migrate/export.php
index ad2c73bdd18f2c3c8d4ed64a47bff87f2d0d62e8..7d0b582e96e020ab18b675eac5acffbf7e57c306 100644
(file)
--- a/
bin/migrate/export.php
+++ b/
bin/migrate/export.php
@@
-3,7
+3,7
@@
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-201
6
|
+ | Copyright CiviCRM LLC (c) 2004-201
7
|
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
@@
-28,7
+28,7
@@
/**
*
* @package CRM
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-201
6
+ * @copyright CiviCRM LLC (c) 2004-201
7
*/
function run() {
session_start();
*/
function run() {
session_start();
@@
-39,6
+39,9
@@
function run() {
// this does not return on failure
CRM_Utils_System::authenticateScript(TRUE);
// 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();
require_once 'CRM/Utils/Migrate/Export.php';
$export = new CRM_Utils_Migrate_Export();