projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19b2a0f
)
CRM-19223 - migrate/move.php - Require "administer CiviCRM"
author
Tim Otten
<totten@civicrm.org>
Thu, 11 Aug 2016 23:53:54 +0000
(16:53 -0700)
committer
Tim Otten
<totten@civicrm.org>
Thu, 11 Aug 2016 23:53:54 +0000
(16:53 -0700)
bin/migrate/move.php
patch
|
blob
|
blame
|
history
diff --git
a/bin/migrate/move.php
b/bin/migrate/move.php
index 271644121c29b1cd16765f8f801abb13c139cace..bef036a9927630b1252acf5bdb9a048199dc303d 100644
(file)
--- a/
bin/migrate/move.php
+++ b/
bin/migrate/move.php
@@
-40,6
+40,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/Core/BAO/ConfigSetting.php';
$moveStatus = CRM_Core_BAO_ConfigSetting::doSiteMove();