1
0
mirror of https://github.com/bitwarden/server synced 2025-12-25 20:53:16 +00:00

add various status counts to org information (#1647)

This commit is contained in:
Kyle Spearrin
2021-10-20 17:10:51 -04:00
committed by GitHub
parent 216395f541
commit de3f1005fc
2 changed files with 13 additions and 2 deletions

View File

@@ -17,6 +17,9 @@ namespace Bit.Admin.Models
{
Organization = org;
HasPublicPrivateKeys = org.PublicKey != null && org.PrivateKey != null;
UserInvitedCount = orgUsers.Count(u => u.Status == OrganizationUserStatusType.Invited);
UserAcceptedCount = orgUsers.Count(u => u.Status == OrganizationUserStatusType.Accepted);
UserConfirmedCount = orgUsers.Count(u => u.Status == OrganizationUserStatusType.Confirmed);
UserCount = orgUsers.Count();
CipherCount = ciphers.Count();
CollectionCount = collections.Count();
@@ -35,6 +38,9 @@ namespace Bit.Admin.Models
public Organization Organization { get; set; }
public string Owners { get; set; }
public string Admins { get; set; }
public int UserInvitedCount { get; set; }
public int UserConfirmedCount { get; set; }
public int UserAcceptedCount { get; set; }
public int UserCount { get; set; }
public int CipherCount { get; set; }
public int CollectionCount { get; set; }