1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-25 12:45:18 +01: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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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