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

Open up permissions on Dedupe.getduplicates #15152

Merged
merged 1 commit into from
Aug 29, 2019

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Less restrictive permissions on Dedupe.getduplicates api - currently only used from unit tests.

Currently the action Dedupe.getduplicates is defaulting to 'administer CiviCRM'.

The function manages permissions internally (ie. you can't retrieve contacts you don't have permission to see) so the function itself can have fairly open permissions - hence I went for 'access CiviCRM' rather than 'merge duplicate contacts' - it might even be argued this should be open & rely solely on contact ACLs but I have not gone that far

Before

Dedupe.getduplicates requires 'Administer CiviCRM'

After

Dedupe.getduplicates requires 'AccessCiviCRM'

Technical Details

This function is part of moving towards api based rather than form based logic. It is not in use in core yet outside tests.

Comments

@civibot
Copy link

civibot bot commented Aug 28, 2019

(Standard links)

@civibot civibot bot added the master label Aug 28, 2019
Currently the action Dedupe.getduplicates is defaulting to 'administer CiviCRM'.

The function manages permissions internally (ie. you can't retrieve contacts you don't have permission  to see)
so the function itself can have fairly open  permissions - hence I went for  'access CiviCRM' rather than
'merge duplicate contacts' - it might even be argued this should be open & rely solely on contact ACLs but
I have not gone that far

This function is part of moving towards api based rather than form based logic. It is not in use in core yet
outside tests.
@seamuslee001
Copy link
Contributor

Test fails unrelated merging

@seamuslee001 seamuslee001 merged commit 74b0c5d into civicrm:master Aug 29, 2019
@seamuslee001 seamuslee001 deleted the dedupe branch August 29, 2019 00:53
eileenmcnaughton added a commit to eileenmcnaughton/deduper that referenced this pull request Aug 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants