From 6d1ac482c22d888ad54d6d8a0020c8a5589b015e Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Thu, 11 Aug 2016 16:51:03 -0700 Subject: [PATCH] CRM-19223 - bin/encryptDB.php - Require permission "administer CiviCRM" --- bin/encryptDB.php | 3 +++ 1 file changed, 3 insertions(+) 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(); } -- 2.25.1