mirror of
https://github.com/bitwarden/server.git
synced 2025-05-23 04:21:05 -05:00
only return eneabled policies by token
This commit is contained in:
parent
57472c9f82
commit
4a67780b3e
@ -100,7 +100,7 @@ namespace Bit.Api.Controllers
|
||||
}
|
||||
|
||||
var policies = await _policyRepository.GetManyByOrganizationIdAsync(orgIdGuid);
|
||||
var responses = policies.Select(p => new PolicyResponseModel(p));
|
||||
var responses = policies.Where(p => p.Enabled).Select(p => new PolicyResponseModel(p));
|
||||
return new ListResponseModel<PolicyResponseModel>(responses);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user