mirror of
https://github.com/bitwarden/server.git
synced 2025-04-08 06:28:14 -05:00
trial subs can be reinstated
This commit is contained in:
parent
4af80001e5
commit
ef2e159b4e
@ -310,7 +310,7 @@ namespace Bit.Core.Utilities
|
|||||||
throw new BadRequestException("Subscription was not found.");
|
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.");
|
throw new BadRequestException("Subscription is not marked for cancellation.");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user