1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 07:36:14 -05:00

only get collection info when in an org

This commit is contained in:
Kyle Spearrin
2017-11-24 09:28:38 -05:00
parent a956b826cd
commit 0502ba2451
3 changed files with 21 additions and 9 deletions

View File

@ -22,7 +22,7 @@ namespace Bit.Core.Models.Api
Profile = new ProfileResponseModel(user, organizationUserDetails);
Folders = folders.Select(f => new FolderResponseModel(f));
Ciphers = ciphers.Select(c => new CipherDetailsResponseModel(c, globalSettings, collectionCiphersDict));
Collections = collections.Select(c => new CollectionResponseModel(c));
Collections = collections?.Select(c => new CollectionResponseModel(c)) ?? new List<CollectionResponseModel>();
Domains = new DomainsResponseModel(user, false);
}