Use secret based link to sponsor-vouchers invoice on dashboard master github/master
authorMagnus Hagander <[email protected]>
Wed, 21 May 2025 16:05:11 +0000 (18:05 +0200)
committerMagnus Hagander <[email protected]>
Wed, 21 May 2025 16:05:11 +0000 (18:05 +0200)
There can be multiple managers of a sponsorship, so for all of them to
be able to view (and pay) the invoice, we need to use the secret-url
link rather tha th eone expecting the user to be the same one as the one
who created it.

Spotted by Cornelia Biacsics

template/confsponsor/sponsor.html

index fd81d3e35a3442ddc12831638c66a1baa186aae0..9f11f93457f0a7a25d309ce96eb47fefd6bfc312 100644 (file)
@@ -258,7 +258,7 @@ this page.
 </p>
 <ul>
 {%for v in pendingvouchers%}
 </p>
 <ul>
 {%for v in pendingvouchers%}
- <li>Invoice #<a href="/invoices/{{v.invoice.id}}/">{{v.invoice.id}}</a></li>
+ <li>Invoice #<a href="/invoices/{{v.invoice.id}}/{{v.invoice.recipient_secret}}/">{{v.invoice.id}}</a></li>
 {%endfor%}
 </ul>
 {%endif%}
 {%endfor%}
 </ul>
 {%endif%}