From 856374b3b262106426f9c851f80424476918349c Mon Sep 17 00:00:00 2001 From: jrmccannon Date: Fri, 28 Mar 2025 12:27:49 -0500 Subject: [PATCH] Adding error and aligning message. --- .../InviteUsers/Validation/PasswordManager/Errors.cs | 6 ++++++ .../InviteUsers/Validation/Payments/Errors.cs | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/InviteUsers/Validation/PasswordManager/Errors.cs b/src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/InviteUsers/Validation/PasswordManager/Errors.cs index c06213c2b3..6ff7181456 100644 --- a/src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/InviteUsers/Validation/PasswordManager/Errors.cs +++ b/src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/InviteUsers/Validation/PasswordManager/Errors.cs @@ -22,3 +22,9 @@ public record PasswordManagerPlanOnlyAllowsMaxAdditionalSeatsError(PasswordManag public const string Code = "Organization plan allows a maximum of {0} additional seats."; } + +public record PasswordManagerMustHaveSeatsError(PasswordManagerSubscriptionUpdate InvalidRequest) + : Error(Code, InvalidRequest) +{ + public const string Code = "You do not have any Password Manager seats!"; +} diff --git a/src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/InviteUsers/Validation/Payments/Errors.cs b/src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/InviteUsers/Validation/Payments/Errors.cs index 02c33f5375..c74d1048ad 100644 --- a/src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/InviteUsers/Validation/Payments/Errors.cs +++ b/src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/InviteUsers/Validation/Payments/Errors.cs @@ -6,5 +6,5 @@ namespace Bit.Core.AdminConsole.OrganizationFeatures.OrganizationUsers.InviteUse public record PaymentCancelledSubscriptionError(PaymentsSubscription InvalidRequest) : Error(Code, InvalidRequest) { - public const string Code = "Cannot autoscale with a canceled subscription."; + public const string Code = "You do not have an active subscription. Reinstate your subscription to make changes."; }