From 71daef2588adfd4bb99adbd3d03ffe62da97c60b Mon Sep 17 00:00:00 2001 From: Matt Gibson Date: Tue, 27 Jul 2021 15:44:54 -0500 Subject: [PATCH] Always enable events for providers (#1487) --- bitwarden_license/src/CommCore/Services/ProviderService.cs | 1 + src/Admin/Models/ProviderEditModel.cs | 3 --- src/Admin/Views/Providers/Edit.cshtml | 5 ----- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/bitwarden_license/src/CommCore/Services/ProviderService.cs b/bitwarden_license/src/CommCore/Services/ProviderService.cs index 615f32bfc0..3471624a03 100644 --- a/bitwarden_license/src/CommCore/Services/ProviderService.cs +++ b/bitwarden_license/src/CommCore/Services/ProviderService.cs @@ -59,6 +59,7 @@ namespace Bit.CommCore.Services { Status = ProviderStatusType.Pending, Enabled = true, + UseEvents = true, }; await _providerRepository.CreateAsync(provider); diff --git a/src/Admin/Models/ProviderEditModel.cs b/src/Admin/Models/ProviderEditModel.cs index 3e21b1e325..7e2b0d6ae3 100644 --- a/src/Admin/Models/ProviderEditModel.cs +++ b/src/Admin/Models/ProviderEditModel.cs @@ -18,7 +18,6 @@ namespace Bit.Admin.Models BusinessName = provider.BusinessName; BillingEmail = provider.BillingEmail; Enabled = provider.Enabled; - UseEvents = provider.UseEvents; } public bool Enabled { get; set; } @@ -26,14 +25,12 @@ namespace Bit.Admin.Models public string BusinessName { get; set; } public string Name { get; set; } [Display(Name = "Events")] - public bool UseEvents { get; set; } public Provider ToProvider(Provider existingProvider) { existingProvider.Name = Name; existingProvider.BusinessName = BusinessName; existingProvider.BillingEmail = BillingEmail?.ToLowerInvariant()?.Trim(); - existingProvider.UseEvents = UseEvents; existingProvider.Enabled = Enabled; return existingProvider; } diff --git a/src/Admin/Views/Providers/Edit.cshtml b/src/Admin/Views/Providers/Edit.cshtml index 2802b23f9d..2e75614aaa 100644 --- a/src/Admin/Views/Providers/Edit.cshtml +++ b/src/Admin/Views/Providers/Edit.cshtml @@ -39,11 +39,6 @@ -

Features

-
- - -