From: Tim Otten Date: Thu, 11 Aug 2016 23:51:03 +0000 (-0700) Subject: CRM-19223 - bin/encryptDB.php - Require permission "administer CiviCRM" X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6d1ac482c22d888ad54d6d8a0020c8a5589b015e;p=civicrm-core.git CRM-19223 - bin/encryptDB.php - Require permission "administer CiviCRM" --- diff --git a/bin/encryptDB.php b/bin/encryptDB.php index 02ff41f71e..ac40bbf331 100644 --- 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(); }