mirror of
https://github.com/bitwarden/server.git
synced 2025-07-04 01:22:50 -05:00
use withOrganizations sproc
This commit is contained in:
@ -90,7 +90,8 @@ namespace Bit.Api.Controllers
|
||||
{
|
||||
var userId = _userService.GetProperUserId(User).Value;
|
||||
var hasOrgs = _currentContext.Organizations.Any();
|
||||
var ciphers = await _cipherRepository.GetManyByUserIdAsync(userId, hasOrgs);
|
||||
// TODO: Use hasOrgs proper for cipher listing here?
|
||||
var ciphers = await _cipherRepository.GetManyByUserIdAsync(userId, true || hasOrgs);
|
||||
Dictionary<Guid, IGrouping<Guid, CollectionCipher>> collectionCiphersGroupDict = null;
|
||||
if(hasOrgs)
|
||||
{
|
||||
|
Reference in New Issue
Block a user