1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-21 12:05:42 +01:00

Update check to match client

This commit is contained in:
Thomas Rittson 2023-10-04 14:52:13 +10:00
parent ce1696f99c
commit f195c1c1f6
No known key found for this signature in database
GPG Key ID: CDDDA03861C35E27

View File

@ -91,7 +91,7 @@ public class AddSecretsManagerSubscriptionCommand : IAddSecretsManagerSubscripti
}
var provider = await _providerRepository.GetByOrganizationIdAsync(organization.Id);
if (provider is { Type: ProviderType.Msp })
if (provider != null)
{
throw new BadRequestException(
"Organizations with a Managed Service Provider do not support Secrets Manager.");