mirror of
https://github.com/bitwarden/server.git
synced 2025-07-01 08:02:49 -05:00
Fix org manager check on export (#1906)
* Fix org manager check on export * Fix filter typo from collection to cipher
This commit is contained in:
@ -87,8 +87,9 @@ namespace Bit.Api.Controllers
|
||||
throw new NotFoundException();
|
||||
}
|
||||
|
||||
var collections = await _collectionRepository.GetManyByOrganizationIdAsync(orgIdGuid);
|
||||
var responses = collections.Select(c => new CollectionResponseModel(c));
|
||||
var collections = await _collectionRepository.GetManyByUserIdAsync(_currentContext.UserId.Value);
|
||||
var orgCollections = collections.Where(c => c.OrganizationId == orgIdGuid);
|
||||
var responses = orgCollections.Select(c => new CollectionResponseModel(c));
|
||||
return new ListResponseModel<CollectionResponseModel>(responses);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user