Skip to content
Snippets Groups Projects
Commit 202e2654 authored by totten's avatar totten
Browse files

CRM-19223 - migrate/(export|import).php - Require "administer CiviCRM"

parent 6d1ac482
Branches
Tags
No related merge requests found
......@@ -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();
......
......@@ -46,6 +46,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/Import.php';
$import = new CRM_Utils_Migrate_Import();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment