compucorp / uk.co.compucorp.civicrm.pivotreport

CiviCRM Pivot table reporting solution
Other
8 stars 13 forks source link

GS-121: Fix Pivot Report Access Permissions #102

Closed MiyaNoctem closed 6 years ago

MiyaNoctem commented 6 years ago

Overview

Some users are not able to view pivot reports. It looks as though unless a user has the 'Administer CiviCRM' permission ticked in addition to 'access CiviCRM pivot table reports' permission, they aren't able to view preconfigured reports.

Before

Users without 'Administer CiviCRM' permission were unable to access pivot reports. There were also problems using the API calls needed to build the reports, as they also required 'Administer CiviCRM' permission.

After

Fixed by making the 'Reports' menu item accessible by users with the 'access CiviCRM pivot table reports' permission and by using the alterAPIPermissions hook to enable required API end-points.