mirror of
https://github.com/bitwarden/server
synced 2025-12-16 08:13:33 +00:00
trial subs can be reinstated
This commit is contained in:
@@ -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.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user