diff --git a/importhelper.php b/importhelper.php index e47773c..349831b 100644 --- a/importhelper.php +++ b/importhelper.php @@ -173,3 +173,14 @@ function importhelper_civicrm_navigationMenu(&$menu) { )); _importhelper_civix_navigationMenu($menu); } +/** + * Implements HOOK_civicrm_alterAPIPermissions. + * + * https://wiki.civicrm.org/confluence/display/CRMDOC/API+Security + * https://docs.civicrm.org/dev/en/master/hooks/hook_civicrm_alterAPIPermissions/ + * + */ +function importhelper_civicrm_alterAPIPermissions($entity, $action, &$params, &$permissions) { + $permissions['csv_helper']['default'] = ['access CiviCRM', 'view all contacts']; +} + diff --git a/info.xml b/info.xml index 7dae35f..4f35540 100644 --- a/info.xml +++ b/info.xml @@ -17,8 +17,8 @@ https://artfulrobot.uk http://www.gnu.org/licenses/gpl-3.0.html - 2017-01-27 - 1.1.4-beta + 2017-04-27 + 1.1.5-beta beta 4.7