From 6f4f11c391d5ff294497929da15da031e9487f07 Mon Sep 17 00:00:00 2001 From: Kevin Cristiano Date: Mon, 1 Feb 2016 13:16:21 -0700 Subject: [PATCH] CRM-17593 - fix built in role 'administer users' to check for capability of 'edit_users' rather than set at the administrator level- Backport to 4.6 ---------------------------------------- * CRM-17593: Certain Permissions are hard coded to 'Administrator' in CRM_Core_Permission_WordPress https://issues.civicrm.org/jira/browse/CRM-17593 --- CRM/Core/Permission/WordPress.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/Permission/WordPress.php b/CRM/Core/Permission/WordPress.php index 2ab8a2eae2..894da77da3 100644 --- a/CRM/Core/Permission/WordPress.php +++ b/CRM/Core/Permission/WordPress.php @@ -49,7 +49,7 @@ class CRM_Core_Permission_WordPress extends CRM_Core_Permission_Base { public function check($str) { // Generic cms 'administer users' role tranlates to 'administrator' WordPress role $str = $this->translatePermission($str, 'WordPress', array( - 'administer users' => 'administrator', + 'administer users' => 'edit_users', )); if ($str == CRM_Core_Permission::ALWAYS_DENY_PERMISSION) { return FALSE; -- 2.25.1