Skip to content
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#1230 Loosen permissions to Dedupe.getstatistics api #15187

Merged
merged 1 commit into from
Sep 5, 2019

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Sep 2, 2019

Overview

This is a recently added api & the permissions turn out to be too restrictive (as I test with a less permissioned user)

This api should have the same level of permission as Dedupe.getduplicates - it gets data about
cached duplicates. Note that getduplicates has 'access CiviCRM' & relys on ACLs to restrict
which contacts can be accessed through it

The results of the function are simply counts of the number of skipped and merged rows from a given search set

Before

Dedupe.getstatistics requires Administer CiviCRM

After

Dedupe.getstatistics requires Access CiviCRM

Technical Details

This does not affect core code as this is only called from tests in core

Comments

https://lab.civicrm.org/dev/core/issues/1230

This api should have the same level of permission as Dedupe.getduplicates - it gets data about
cached duplicates. Note that getduplicates has 'access CiviCRM' & relys on ACLs to  restrict
which contacts can be accessed through it
@civibot
Copy link

civibot bot commented Sep 2, 2019

(Standard links)

@civibot civibot bot added the master label Sep 2, 2019
@eileenmcnaughton eileenmcnaughton changed the title Loosen permissions to Dedupe.getstatistics api dev/core#1230 Loosen permissions to Dedupe.getstatistics api Sep 3, 2019
@eileenmcnaughton
Copy link
Contributor Author

@colemanw also this should be straight forward

@seamuslee001
Copy link
Contributor

makes sense to me merging

@seamuslee001 seamuslee001 merged commit 283c0da into civicrm:master Sep 5, 2019
@seamuslee001 seamuslee001 deleted the dedupe11 branch September 5, 2019 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants