mirror of
https://github.com/bitwarden/server.git
synced 2024-12-03 14:03:33 +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
|
||||
var orgUsers = await _organizationUserRepository.GetManyDetailsByOrganizationAsync(policy.OrganizationId);
|
||||
var org = await _organizationRepository.GetByIdAsync(policy.Id);
|
||||
var org = await _organizationRepository.GetByIdAsync(policy.OrganizationId);
|
||||
if (org == null)
|
||||
{
|
||||
throw new NotFoundException("Organization not found.");
|
||||
|
Loading…
Reference in New Issue
Block a user