Fix bug with affiliate links and also move paypal.me text

This commit is contained in:
Seth Call 2021-03-17 20:51:32 -05:00
parent 8b94c17d0e
commit 7a5c731b25
2 changed files with 6 additions and 9 deletions

View File

@ -117,7 +117,7 @@ class ApiController < ApplicationController
raise JamPermissionError, ValidationMessages::PERMISSION_VALIDATION_ERROR
elsif @partner.partner_user.nil?
raise JamPermissionError, ValidationMessages::PERMISSION_VALIDATION_ERROR
elsif !current_user.admin || @partner.partner_user != current_user
elsif !current_user.admin && @partner.partner_user != current_user
raise JamPermissionError, ValidationMessages::PERMISSION_VALIDATION_ERROR
end
elsif current_user

View File

@ -42,7 +42,11 @@ script type="text/template" id="template-affiliate-partner-account"
| We must have a complete mailing address and a valid tax ID in order to process and mail payments due to all affiliates.&nbsp;&nbsp;Per the terms of the affiliate agreement, if this information is not available within 90 days of the end of a calendar quarter, then any payment obligation due to the affiliate for such calendar quarter shall be considered fully and permanently discharged, and no further payment for such calendar quarter shall be due or payable to affiliate.
br
br
| For fastest receipt of payment, please specify a PayPal.Me account.
span
| For fastest receipt of payment, please specify a PayPal.Me account (ex:
b
| &nbsp; paypal.me/YourName
| &nbsp; )
br
br
| So please provide this data, and be sure to keep it current!
@ -79,13 +83,6 @@ script type="text/template" id="template-affiliate-partner-account"
.affiliate-label PayPal.Me:
= text_field_tag('affiliate_partner_paypal_id', "{{ data.paypal_id }}", { class: 'w60' })
br
span style="padding-left:138px"
| A PayPal.Me link looks like&nbsp;
b paypal.me/YourName
| &nbsp;Please read more info&nbsp;
a href="https://www.paypal.com/us/smarthelp/article/What-is-PayPalMe-FAQ3025"
| about PayPal.Me
br
br
.spacer
.input-buttons