Open up permissions on Dedupe.getduplicates
authoreileen <emcnaughton@wikimedia.org>
Wed, 28 Aug 2019 22:59:18 +0000 (10:59 +1200)
committereileen <emcnaughton@wikimedia.org>
Wed, 28 Aug 2019 23:27:54 +0000 (11:27 +1200)
commitcc4776933e85e977702876dbff86163d3604b197
treeab9623cd0cc59dd6fc994eeb09f33c41d53c0c86
parent645f66f34b9c9696b38259d8e9ccc767db5b21f5
Open up permissions on Dedupe.getduplicates

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.
CRM/Core/Permission.php