Allow Permissioned contact to download the invoice
Overview To Print other contact Invoice Logged in contact need 'access CiviContribute' permission To Print own Invoice Logged in contact need 'view my invoices' Permission. If user role only have 'view my invoices' permission and want to print invoice of contact which have Permissioned relationship. It gives access denied message. (e.g. Employee should print invoice of Employer contact if relationship is Permissioned)
Before it was not allowing download invoice for Permissioned relationship contact.
After It allow to download invoice for Permissioned relationship contact.
NOTE I'm opening this to track https://github.com/civicrm/civicrm-core/pull/13320 so I can close it - it hasn't been approved in concept so it's stalled in the PR queue. Most of the work for a change like this is in the unit test & in the approval negotiation so the PR is probably about 20% of the overall work & it makes more sense to remove from review queue for now