mirror of
https://github.com/bitwarden/server.git
synced 2024-12-04 14:13:28 +01:00
Fix bug: using wrong id
This commit is contained in:
parent
cb3850c098
commit
f21d43f252
@ -38,7 +38,7 @@ public class SingleOrgPolicyStrategy : IPolicyStrategy
|
|||||||
{
|
{
|
||||||
// Remove non-compliant users
|
// Remove non-compliant users
|
||||||
var orgUsers = await _organizationUserRepository.GetManyDetailsByOrganizationAsync(policy.OrganizationId);
|
var orgUsers = await _organizationUserRepository.GetManyDetailsByOrganizationAsync(policy.OrganizationId);
|
||||||
var org = await _organizationRepository.GetByIdAsync(policy.Id);
|
var org = await _organizationRepository.GetByIdAsync(policy.OrganizationId);
|
||||||
if (org == null)
|
if (org == null)
|
||||||
{
|
{
|
||||||
throw new NotFoundException("Organization not found.");
|
throw new NotFoundException("Organization not found.");
|
||||||
|
Loading…
Reference in New Issue
Block a user