From: Kevin Cristiano Date: Mon, 1 Feb 2016 20:12:05 +0000 (-0700) Subject: CRM-17593 - fix built in role 'administer users' to check for capability of 'edit_use... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=2055414972074bfd2b71fdfe198ce9aae4d43b88;p=civicrm-core.git CRM-17593 - fix built in role 'administer users' to check for capability of 'edit_users' rather than set at the administrator level ---------------------------------------- * CRM-17593: Certain Permissions are hard coded to 'Administrator' in CRM_Core_Permission_WordPress https://issues.civicrm.org/jira/browse/CRM-17593 --- diff --git a/CRM/Core/Permission/WordPress.php b/CRM/Core/Permission/WordPress.php index bbe2463207..b0ecd5b11e 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;