CRM-16269 Need view invoice permissions

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.6, 4.6.1, 4.6.2
    • Fix Version/s: 4.6.3
    • Component/s: None
    • Labels:
      None
    • Documentation Required?:
      None

      Description

      Currently only people who have access CiviContribute permission can view/ download invoices. Users won't be able to get their own invoices from contact dashboard.

      Hence we need a new permission:
      download my invoices - to view/download all the invoices of current user

      Users with 'access CiviContribute' permission will be able to view/download invoices of any user.

        Attachments

          Activity

          [CRM-16269] Need view invoice permissions
          David Greenberg added a comment -

          We can assign a Fix For once you submit a PR. Please submit it against 4.6 branch on Github.

          Guanhuan Chen added a comment -

          Hi Dave,

          Please refer to the PR here: https://github.com/civicrm/civicrm-core/pull/5775 .

          Best,
          Guanhuan

          Guanhuan Chen added a comment -

          The PR is ready to be merged.

          David Greenberg added a comment -

          Guanhen - PR tested, looks good. However, a few more changes are needed:

          1. Add permission check to conditional display of Print Invoice column and button in Dashboard.tpl so that user's do NOT see the button if they don't have permission (avoiding 'access denied' issues). You can use this model:

          call_user_func(array('CRM_Core_Permission','check'), 'edit memberships')

          2. Please use the same button markup as used in ContributionView.tpl (line 52 +) so that the print icon appears in the button.

          3. Would be great if you could fix the indenting in the UserDashboard.tpl template (nice to have).

          Thanks!

            People

            • Assignee:
              David Greenberg
              Reporter:
              Guanhuan Chen

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h