mirror of
https://github.com/bitwarden/server.git
synced 2024-12-25 17:27:45 +01:00
users must also be confirmed
This commit is contained in:
parent
a9c8fbf6cb
commit
e8b595c7ae
@ -15,8 +15,14 @@ namespace Bit.Admin.Models
|
|||||||
{
|
{
|
||||||
Organization = org;
|
Organization = org;
|
||||||
UserCount = orgUsers.Count();
|
UserCount = orgUsers.Count();
|
||||||
Owners = string.Join(", ", orgUsers.Where(u => u.Type == OrganizationUserType.Owner).Select(u => u.Email));
|
Owners = string.Join(", ",
|
||||||
Admins = string.Join(", ", orgUsers.Where(u => u.Type == OrganizationUserType.Admin).Select(u => u.Email));
|
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; }
|
public Organization Organization { get; set; }
|
||||||
|
Loading…
Reference in New Issue
Block a user