From 94ce5facdbbbad04e086f2b3e5a0ed63ba0160d9 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 d6500f1c31..16ae38e656 100644 --- a/bin/encryptDB.php +++ b/bin/encryptDB.php @@ -95,6 +95,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