Skip to content

Commit

Permalink
Change permissions, fix #10
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich Lott committed Apr 27, 2017
1 parent 36191ad commit 02eb3a5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions importhelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
}

4 changes: 2 additions & 2 deletions info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
<url desc="Support">https://artfulrobot.uk</url>
<url desc="Licensing">http://www.gnu.org/licenses/gpl-3.0.html</url>
</urls>
<releaseDate>2017-01-27</releaseDate>
<version>1.1.4-beta</version>
<releaseDate>2017-04-27</releaseDate>
<version>1.1.5-beta</version>
<develStage>beta</develStage>
<compatibility>
<ver>4.7</ver>
Expand Down

0 comments on commit 02eb3a5

Please sign in to comment.