CRM-17593 - fix built in role 'administer users' to check for capability of 'edit_use...
authorKevin Cristiano <kcristiano@tadpole.cc>
Mon, 1 Feb 2016 20:12:05 +0000 (13:12 -0700)
committerKevin Cristiano <kcristiano@tadpole.cc>
Mon, 1 Feb 2016 20:12:05 +0000 (13:12 -0700)
----------------------------------------
* 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

index bbe2463207df2dbb73c809c0c8179dca33af0cbb..b0ecd5b11e77d353fa7350ed89c4b564d5bd1956 100644 (file)
@@ -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;