1
0
mirror of https://github.com/bitwarden/server synced 2025-12-13 23:03:36 +00:00

organization cipher import with collections

This commit is contained in:
Kyle Spearrin
2017-09-05 17:49:34 -04:00
parent e7aa6980d5
commit 95181aef89
9 changed files with 228 additions and 25 deletions

View File

@@ -44,6 +44,15 @@ namespace Bit.Core.Models.Api
});
}
public CipherDetails ToOrganizationCipherDetails(Guid orgId)
{
return ToCipherDetails(new CipherDetails
{
OrganizationId = orgId,
Edit = true
});
}
public Cipher ToOrganizationCipher()
{
if(string.IsNullOrWhiteSpace(OrganizationId))