From: Kevin Cristiano Date: Tue, 2 Feb 2016 19:01:38 +0000 (-0700) Subject: CRM-17593 -Update comment for change from role based permission to capabilties based... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=cf39ce67e3b0df4fede7b62514f1257912877216;p=civicrm-core.git CRM-17593 -Update comment for change from role based permission to capabilties based permissions ---------------------------------------- * 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 b0ecd5b11e..4de5a0e539 100644 --- a/CRM/Core/Permission/WordPress.php +++ b/CRM/Core/Permission/WordPress.php @@ -47,7 +47,7 @@ class CRM_Core_Permission_WordPress extends CRM_Core_Permission_Base { * true if yes, else false */ public function check($str) { - // Generic cms 'administer users' role tranlates to 'administrator' WordPress role + // Generic cms 'administer users' role tranlates to users with the 'edit_users' capability' in WordPress $str = $this->translatePermission($str, 'WordPress', array( 'administer users' => 'edit_users', ));