From 2055414972074bfd2b71fdfe198ce9aae4d43b88 Mon Sep 17 00:00:00 2001 From: Kevin Cristiano Date: Mon, 1 Feb 2016 13:12:05 -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 ---------------------------------------- * 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 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; -- 2.25.1