1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-25 12:45:18 +01:00

trial subs can be reinstated

This commit is contained in:
Kyle Spearrin 2017-07-26 08:08:45 -04:00
parent 4af80001e5
commit ef2e159b4e

View File

@ -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.");
}