3

is there any way to set an ACL (or any other permission) that denies some groups the right to export contacts during Advanced Search, while still allowing the search to take place...

I'm aware that I'd need to accomplish this by permitting specific groups to do this (if the feature exists), thereby denying others the permission.

I couldn't see this option in the ACL setup process, /civicrm/acl?reset=1.

Thanks!

(Civi 4.6.14, Drupal 7.43)

1 Answer 1

0

There is not. In CiviCRM, ACL and permissions in general are contact-based: if you have permission to see a contact, then you see all related data about this contact. And if you see some data on screen, there is no reason you would not be able to export it.

The solution to your issue is to customize the export code to check the logged-in user and eventually display an error message if you want to deny this user the export.

Such a change would be in file CRM\Core\Report\Export\Excel.php as this file is responsible for generating all export files.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.