mirror of
https://github.com/bitwarden/server.git
synced 2025-07-02 16:42:50 -05:00
reference OrganizationMembership instead
This commit is contained in:
@ -88,7 +88,7 @@ namespace Bit.Api.Controllers
|
||||
public async Task<ListResponseModel<CipherDetailsResponseModel>> Get()
|
||||
{
|
||||
var userId = _userService.GetProperUserId(User).Value;
|
||||
var hasOrgs = _currentContext.Organizations.Any();
|
||||
var hasOrgs = _currentContext.Organizations?.Any() ?? false;
|
||||
// TODO: Use hasOrgs proper for cipher listing here?
|
||||
var ciphers = await _cipherRepository.GetManyByUserIdAsync(userId, true || hasOrgs);
|
||||
Dictionary<Guid, IGrouping<Guid, CollectionCipher>> collectionCiphersGroupDict = null;
|
||||
|
Reference in New Issue
Block a user