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:
parent
4af80001e5
commit
ef2e159b4e
@ -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.");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user