can only gift patron to enabled accounts

pull/10052/head
Thibault Duplessis 2021-10-29 10:34:55 +02:00
parent f9e850fd71
commit ac30ebc9bb
1 changed files with 1 additions and 1 deletions

View File

@ -209,7 +209,7 @@ final class Plan(env: Env)(implicit system: akka.actor.ActorSystem) extends Lila
data => {
val checkout = data.fixFreq
for {
gifted <- checkout.giftTo.filterNot(ctx.userId.has).??(env.user.repo.named)
gifted <- checkout.giftTo.filterNot(ctx.userId.has).??(env.user.repo.enabledNamed)
customer <- env.plan.api.userCustomer(me)
session <- customer match {
case Some(customer) if checkout.freq == Freq.Onetime =>