1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-14 22:27:32 -05:00

Bugfix: pulled back correct policy (#999)

This commit is contained in:
Vincent Salucci
2020-11-17 17:04:29 -06:00
committed by GitHub
parent 60973e3051
commit 028ad46c47

View File

@ -143,7 +143,7 @@ namespace Bit.Portal.Controllers
{
break;
}
var singleOrg = await _policyRepository.GetByOrganizationIdTypeAsync(orgId.Value, type);
var singleOrg = await _policyRepository.GetByOrganizationIdTypeAsync(orgId.Value, PolicyType.SingleOrg);
if (singleOrg?.Enabled != true)
{
ModelState.AddModelError(string.Empty, _i18nService.T("RequireSsoPolicyReqError"));