Skip to content
Snippets Groups Projects
Commit 6d1ac482 authored by totten's avatar totten
Browse files

CRM-19223 - bin/encryptDB.php - Require permission "administer CiviCRM"

parent ea1bf656
Branches
Tags
No related merge requests found
......@@ -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();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment