mirror of
https://github.com/bitwarden/server.git
synced 2024-11-25 12:45:18 +01:00
Add check for org SM flag in client store (#3007)
This commit is contained in:
parent
c4614bfb3d
commit
ca7ced4e43
@ -96,6 +96,17 @@ public class ClientStore : IClientStore
|
||||
return null;
|
||||
}
|
||||
|
||||
switch (apiKey)
|
||||
{
|
||||
case ServiceAccountApiKeyDetails key:
|
||||
var org = await _organizationRepository.GetByIdAsync(key.ServiceAccountOrganizationId);
|
||||
if (!org.UseSecretsManager)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
var client = new Client
|
||||
{
|
||||
ClientId = clientId,
|
||||
|
Loading…
Reference in New Issue
Block a user