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:
ea1bf65
)
CRM-19223 - bin/encryptDB.php - Require permission "administer CiviCRM"
author
Tim Otten
<totten@civicrm.org>
Thu, 11 Aug 2016 23:51:03 +0000
(16:51 -0700)
committer
Tim Otten
<totten@civicrm.org>
Thu, 11 Aug 2016 23:51:03 +0000
(16:51 -0700)
bin/encryptDB.php
patch
|
blob
|
blame
|
history
diff --git
a/bin/encryptDB.php
b/bin/encryptDB.php
index 02ff41f71ebcd5f17ce785fd830278efe7e0f20c..ac40bbf331eda33c63c863bc4e4e9515b543a80d 100644
(file)
--- a/
bin/encryptDB.php
+++ b/
bin/encryptDB.php
@@
-93,6
+93,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);
+ }
encryptDB();
}