From e8b595c7ae1eff472f571230683b05faf0928be5 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Sat, 24 Mar 2018 20:00:11 -0400 Subject: [PATCH] users must also be confirmed --- src/Admin/Models/OrganizationViewModel.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Admin/Models/OrganizationViewModel.cs b/src/Admin/Models/OrganizationViewModel.cs index fbab7d2cc7..9b17b113d9 100644 --- a/src/Admin/Models/OrganizationViewModel.cs +++ b/src/Admin/Models/OrganizationViewModel.cs @@ -15,8 +15,14 @@ namespace Bit.Admin.Models { Organization = org; UserCount = orgUsers.Count(); - Owners = string.Join(", ", orgUsers.Where(u => u.Type == OrganizationUserType.Owner).Select(u => u.Email)); - Admins = string.Join(", ", orgUsers.Where(u => u.Type == OrganizationUserType.Admin).Select(u => u.Email)); + Owners = string.Join(", ", + orgUsers + .Where(u => u.Type == OrganizationUserType.Owner && u.Status == OrganizationUserStatusType.Confirmed) + .Select(u => u.Email)); + Admins = string.Join(", ", + orgUsers + .Where(u => u.Type == OrganizationUserType.Admin && u.Status == OrganizationUserStatusType.Confirmed) + .Select(u => u.Email)); } public Organization Organization { get; set; }