Skip to content

Commit dcdb14b

Browse files
authored
Merge pull request #2629 from datadryad/institution-keep-sponsor
Lock in institutional sponsors at submission
2 parents 826e96a + 86a8b3a commit dcdb14b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/models/stash_engine/support/payment_methods.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ def record_payment
9393

9494
def institution_will_pay?
9595
tenant = latest_resource&.tenant
96+
97+
# do not remove recorded institution sponsor due to sponsorship change
98+
return true if payment_id.present? && payment_id == tenant&.id
99+
96100
return false unless tenant&.payment_configuration&.covers_dpc
97101

98102
if tenant&.authentication&.strategy == 'author_match'

0 commit comments

Comments
 (0)