1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-26 12:55:17 +01:00

Add fix for MSP's enabling secrets manager (#2794)

This commit is contained in:
Thomas Avery 2023-03-10 09:52:07 -06:00 committed by GitHub
parent bd666841a5
commit 250509c7ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -703,8 +703,11 @@ public class OrganizationsController : Controller
if (model.Enabled) if (model.Enabled)
{ {
var orgUser = await _organizationUserRepository.GetByOrganizationAsync(id, userId); var orgUser = await _organizationUserRepository.GetByOrganizationAsync(id, userId);
if (orgUser != null)
{
orgUser.AccessSecretsManager = true; orgUser.AccessSecretsManager = true;
await _organizationUserRepository.ReplaceAsync(orgUser); await _organizationUserRepository.ReplaceAsync(orgUser);
} }
} }
} }
}