-
-
Notifications
You must be signed in to change notification settings - Fork 825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dev/core#3914 Add getRoleNames() method for WordPress #24751
Conversation
(Standard links)
|
Can one of the admins verify this patch? |
Jenkins add to white list |
this seems ok to me thoughts @kcristiano @haystack? |
Jenkins add to whitelist |
@@ -1283,6 +1283,15 @@ public function sessionStart() { | |||
session_start(); | |||
} | |||
} | |||
|
|||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems intuitively sensible.
@bastienho I think the test bot is complaining because the blank line (1286 above) has some invisible space characters. If you can delete the space-characters, then it should accept it.
This looks sensible. I've applied the patch to my RC testimg site to test. @bastienho do you have an example of an extension that I can specifically test? |
Hi
I'll clean-up the dummy spaces.
I was trying to use this extension when I found the missing method :
https://lab.civicrm.org/extensions/hierarchicalacl/-/blob/1.x/CRM/HierarchicalACL/Form/Config.php#L132
21 oct. 2022 13:15:28 Kevin Cristiano ***@***.***>:
… This looks sensible. I've applied the patch to my RC testimg site to test. @bastienho[https://github.com/bastienho] do you have an example of an extension that I can specifically test?
—
Reply to this email directly, view it on GitHub[#24751 (comment)], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AASMK6IHNNRJSZKUD3AJME3WEJ3MBANCNFSM6AAAAAARFIS3TE].
You are receiving this because you were mentioned.[Image de pistage][https://github.com/notifications/beacon/AASMK6OYXT4IHAOPYGD42ZTWEJ3MBA5CNFSM6AAAAAARFIS3TGWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSMWNAOS.gif]
|
That's odd on CiviCRM master enabling that extension fails
Just standard buildkit extensions installed
|
Seems like a sensible addition to me. I expect it's worth checking that "ACL Group/Role" multi-select functions as expected in whatever form it is that BTW @seamuslee001 I know it's confusing, but someone grabbed my usual handle here before I did. 🤷 |
I've been able to do a number of |
Sorry guys, the white space is cleaned-up |
thanks @bastienho can you please also create a PR to add yourself to the Contributor Key file https://github.com/civicrm/civicrm-core/blob/master/contributor-key.yml |
Overview
Fixes the Missing getRoleNames() method in WordPress System Utility issue.
Some extensions use the CRM_Core_Config::singleton()->userSystem->getRoleNames() method, which is not implemented for WordPress
Before
On a WordPress install,
CRM_Core_Config::singleton()->userSystem->getRoleNames()
return NULL;After
CRM_Core_Config::singleton()->userSystem->getRoleNames()
returnsArray ( [administrator] => Administrator [editor] => Editor [author] => Author [contributor] => Contributor [subscriber] => Subscriber [anonymous_user] => Anonymous User )
Technical Details
Uses
wp_roles()