mirror of
https://github.com/bitwarden/server.git
synced 2025-07-04 01:22:50 -05:00
[SM-896] restricting access to disabled orgs (#3287)
* restricting access to disabled orgs * Unit Test Updates * Update test/Api.IntegrationTest/SecretsManager/Controllers/AccessPoliciesControllerTests.cs Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com> * Covering all test cases * making organization enabled NOT default --------- Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com>
This commit is contained in:
@ -100,7 +100,7 @@ public class ClientStore : IClientStore
|
||||
{
|
||||
case ServiceAccountApiKeyDetails key:
|
||||
var org = await _organizationRepository.GetByIdAsync(key.ServiceAccountOrganizationId);
|
||||
if (!org.UseSecretsManager)
|
||||
if (!org.UseSecretsManager || !org.Enabled)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
Reference in New Issue
Block a user