mirror of
https://github.com/bitwarden/server
synced 2025-12-19 09:43:25 +00:00
only get collection info when in an org
This commit is contained in:
@@ -58,9 +58,8 @@ namespace Bit.Api.Controllers
|
||||
var folders = await _folderRepository.GetManyByUserIdAsync(user.Id);
|
||||
var ciphers = await _cipherRepository.GetManyByUserIdAsync(user.Id);
|
||||
|
||||
IEnumerable<Collection> collections = new List<Collection>();
|
||||
IDictionary<Guid, IGrouping<Guid, CollectionCipher>> collectionCiphersGroupDict =
|
||||
new Dictionary<Guid, IGrouping<Guid, CollectionCipher>>();
|
||||
IEnumerable<Collection> collections = null;
|
||||
IDictionary<Guid, IGrouping<Guid, CollectionCipher>> collectionCiphersGroupDict = null;
|
||||
if(organizationUserDetails.Any(o => o.Enabled))
|
||||
{
|
||||
collections = await _collectionRepository.GetManyByUserIdAsync(user.Id, false);
|
||||
|
||||
Reference in New Issue
Block a user