Answers.Body: <p>To print invoice the user should either have access CiviContribute or view my invoice permission. "CiviPay: access CiviPay" permission doesn't come with CiviCRM install. I feel CiviPay extension might be conflicting with Print invoice as the extension may be using same url as of print invoice i.e <code>civicrm/contribute/invoice</code>. </p>
  
  <p>Pradeep</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-04-25T13:00:33.440Z
Answers.Text: Sorry my bad, CiviContribute was renamed to CiviPay on the site i was testing. 'view my invoice permission' is assigned to role but still user cannot view invoices unless 'CiviContribute: access CiviContribute' is also given.
Answers.UserDisplayName: Hassan Farooq
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-04-25T15:23:36.340Z
Answers.Text: My exerience is the same as Hassan's: "CiviContribute: access CiviContribute" is required for front-end users to access the invoices. Related question: Does giving this access to front end users create any vulnerabilities to the data? Is there a risk of people accessing more than I might expect?
Answers.UserDisplayName: Phil Morice Brubaker
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-04-25T15:43:42.843Z
Answers.Text: The code say that the link is accessible to any user with Access CiviContribute user or logged in user with 'view my invoice' to view their own invoice. I just tried and i could download the pdf with 'view my invoice' permission. User having 'view my invoice' permission won't be allowed to download invoice of other contact.
Answers.UserDisplayName: Pradeep Nayak
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-04-24T08:25:49.620Z
Answers.LastActivityDate: 2018-04-24T08:25:49.620Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>CMS: Drupal 7</p>
  
  <p>CiviCRM: 4.7.31</p>
  
  <p>"<em>CiviCRM: access Contact Dashboard</em>" permission is set for authenticated user and logged in user has "<em>CiviCRM: view my invoices</em>" permission also.</p>
  
  <p>User can access contact dashboard page with buttons to print invoice for contributions but get access denied message unless "<em>CiviContribute: access CiviContribute</em>" permission is also assigned to user role.</p>
  
  <p><a href="https://i.sstatic.net/enSDG.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/enSDG.png" alt="enter image description here"></a></p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-04-23T22:38:39.737Z
Comments.Text: I don't see civipay permissions on the site i checked. is this an extension?
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-04-24T18:18:13.763Z
Comments.Text: I found this because I also was alerted to this same (?) problem from a Joomla registered user today. Civi 4.7.27, do not have CiviPay extension. User can access her dashboard with Print Invoice buttons, but gets permission error when trying to access them. "CiviCRM: view my invoices" is allowed for Joomla Registered Users.
Comments.UserDisplayName: Phil Morice Brubaker
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-04-25T12:57:11.153Z
Comments.Text: @petednz-fuzion, CiviPay = CiviContribute. I will update my original question.
Comments.UserDisplayName: Hassan Farooq
Tags: <civicontribute><contributions><invoice><user-dashboard>
Title: Not able to print contribution invoice
ThreadText: # Not able to print contribution invoice
  
  (Asked by: username_0 on 2018-04-23)
  
  CMS: Drupal 7
  
  CiviCRM: 4.7.31
  
  "*CiviCRM: access Contact Dashboard*" permission is set for authenticated user and logged in user has "*CiviCRM: view my invoices*" permission also.
  
  User can access contact dashboard page with buttons to print invoice for contributions but get access denied message unless "*CiviContribute: access CiviContribute*" permission is also assigned to user role.
  
  [![enter image description here](https://i.sstatic.net/enSDG.png)](https://i.sstatic.net/enSDG.png)
  
  **Tags:** civicontribute, contributions, invoice, user-dashboard
  
  > **Comments:**
  > **username_1**: I don't see civipay permissions on the site i checked. is this an extension?  
  > **username_2**: I found this because I also was alerted to this same (?) problem from a Joomla registered user today. Civi 4.7.27, do not have CiviPay extension. User can access her dashboard with Print Invoice buttons, but gets permission error when trying to access them. "CiviCRM: view my invoices" is allowed for Joomla Registered Users.  
  > **username_0**: @username_1, CiviPay = CiviContribute. I will update my original question.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_3 on 2018-04-24. Score: 1
  
  To print invoice the user should either have access CiviContribute or view my invoice permission. "CiviPay: access CiviPay" permission doesn't come with CiviCRM install. I feel CiviPay extension might be conflicting with Print invoice as the extension may be using same url as of print invoice i.e `civicrm/contribute/invoice`.
  
  username_3
  
  > **Comments:**
  > **username_0**: Sorry my bad, CiviContribute was renamed to CiviPay on the site i was testing. 'view my invoice permission' is assigned to role but still user cannot view invoices unless 'CiviContribute: access CiviContribute' is also given.  
  > **username_2**: My exerience is the same as username_0's: "CiviContribute: access CiviContribute" is required for front-end users to access the invoices. Related question: Does giving this access to front end users create any vulnerabilities to the data? Is there a risk of people accessing more than I might expect?  
  > **username_3**: The code say that the link is accessible to any user with Access CiviContribute user or logged in user with 'view my invoice' to view their own invoice. I just tried and i could download the pdf with 'view my invoice' permission. User having 'view my invoice' permission won't be allowed to download invoice of other contact.  
  
  ---
  
  