mirror of
https://github.com/bitwarden/server.git
synced 2024-11-22 12:15:36 +01:00
Add fix for MSP's enabling secrets manager (#2794)
This commit is contained in:
parent
bd666841a5
commit
250509c7ac
@ -703,8 +703,11 @@ public class OrganizationsController : Controller
|
||||
if (model.Enabled)
|
||||
{
|
||||
var orgUser = await _organizationUserRepository.GetByOrganizationAsync(id, userId);
|
||||
orgUser.AccessSecretsManager = true;
|
||||
await _organizationUserRepository.ReplaceAsync(orgUser);
|
||||
if (orgUser != null)
|
||||
{
|
||||
orgUser.AccessSecretsManager = true;
|
||||
await _organizationUserRepository.ReplaceAsync(orgUser);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user