// 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();
// 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();