-
-
Notifications
You must be signed in to change notification settings - Fork 824
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
SearchKit - Add "administer search_kit" permission #23670
Conversation
(Standard links)
|
I know there's no standard and it's already mixed just I think it would be neat if all the internal names of permissions were all lower-case, to avoid mismatches that have come up before. Not sure what the fail is about:
jenkins retest this please |
4247757
to
0239941
Compare
@demeritcowboy that would be nice in retrospect. And we can do it going forward. I've changed this one to |
Working: Don't give administer civicrm or administer civicrm data or administer search_kit => can't do admin stuff but can use existing search displays. But then add the permission to administer search_kit and while I can now see the admin interface, if I try to save a new search I get a spinning save button. It gives error 403 with |
sounds like progress :-) |
This permission allows non-admins to use search kit. Previously the user needed 'administer CiviCRM data' permission. Fixes dev/core#3457
0239941
to
f02286d
Compare
How about that, it turns out there was a |
Tested this on production and it's working great! Non-admins can now create and view searches, which is exactly what we wanted. Only minor issue is that non-admins with this and 'edit all contacts' don't see the 'Related Contacts' entity. I'm assuming that's because permissions on relationships are more complicated. I can see it devolves down to addSelectWhereClause, but haven't got any further than that yet. |
This allows extensions to expand permissions via the civi.api.authorize event, instead of assuming that all permissions are hard-coded in the core entity.
f02286d
to
1936f6c
Compare
Issues have been addressed upping to MOP |
Overview
Adds a permission which allows non-admins to use Search Kit.
See https://lab.civicrm.org/dev/core/-/issues/3457
Before
Previously the user needed 'administer CiviCRM data' permission to use Search Kit.
After
Technical Details
When updating the navigation menu permissions, I switched it over to use a
.mgd.php
to insert the menu item instead of creating it with the installer. This should also work better for multi-domain sites.