mirror of
https://github.com/bitwarden/server
synced 2025-12-22 03:03:33 +00:00
Add fix for MSP's enabling secrets manager (#2794)
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user