-
-
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
Fix search display access for non-admin users #21082
Fix search display access for non-admin users #21082
Conversation
(Standard links)
|
@colemanw fail relates |
f4a10fa
to
6aad1fc
Compare
Fixed it @eileenmcnaughton |
@colemanw this looks right now - so my take on this is that this is what you thought you had done in the first place? (hence it was hard to convince you it needed doing) |
Yea, the missing 'get' permission was an oversight. |
@colemanw so to get it to render I also needed
In addition I hit problems that were entity related - ie my contact had permission to view contributions but not the ability to view financial records related to them - I can put that in gitlab |
Non-admin users should be allowed to view any search display that doesn't have permission checks disabled; for those displays that disable permission checks, non-admins will only be able to view it if embedded in an afform. Fixes dev/core#2737
6aad1fc
to
144025a
Compare
@eileenmcnaughton I've made that addition to the SavedSearch permissions. |
@colemanw so - is there any case where we would not want people with access civicrm to find saved searches? I feel like it could expose some data about what you do business process wise - but I'm not sure. OTOH it does seem like that would need to be restricted in some way that is less than blanket @seamuslee001 any thoughts? |
I'm OK with this but going with merge-ready due to the comments about about extending saved search get permissions |
I don't think it's a problem @eileenmcnaughton. The SavedSearch entity contains metadata and search criteria but no contact data. |
Ok - well 5 days merge ready is enough |
Overview
Non-admin users should be allowed to view any search display that doesn't have permission checks disabled;
for those displays that disable permission checks, non-admins will only be able to view it if embedded in an afform.
Fixes dev/core#2737
Before
Permission checks too strict
After
Permission checks just right