From ef2e159b4e4b23e21b5857e7880dc8b746f19bf1 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 26 Jul 2017 08:08:45 -0400 Subject: [PATCH] trial subs can be reinstated --- src/Core/Utilities/BillingHelpers.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Utilities/BillingHelpers.cs b/src/Core/Utilities/BillingHelpers.cs index 59d4dbaf7..e8d61b721 100644 --- a/src/Core/Utilities/BillingHelpers.cs +++ b/src/Core/Utilities/BillingHelpers.cs @@ -310,7 +310,7 @@ namespace Bit.Core.Utilities throw new BadRequestException("Subscription was not found."); } - if(sub.Status != "active" || !sub.CanceledAt.HasValue) + if((sub.Status != "active" && sub.Status != "trialing") || !sub.CanceledAt.HasValue) { throw new BadRequestException("Subscription is not marked for cancellation."); }