mirror of
https://github.com/bitwarden/server.git
synced 2025-07-01 08:02:49 -05:00
manage user type
This commit is contained in:
@ -90,7 +90,7 @@ namespace Bit.Core.Services
|
||||
}
|
||||
}
|
||||
|
||||
public async Task<OrganizationUser> InviteUserAsync(Guid organizationId, string email,
|
||||
public async Task<OrganizationUser> InviteUserAsync(Guid organizationId, string email, Enums.OrganizationUserType type,
|
||||
IEnumerable<SubvaultUser> subvaults)
|
||||
{
|
||||
var orgUser = new OrganizationUser
|
||||
@ -99,7 +99,7 @@ namespace Bit.Core.Services
|
||||
UserId = null,
|
||||
Email = email,
|
||||
Key = null,
|
||||
Type = Enums.OrganizationUserType.User,
|
||||
Type = type,
|
||||
Status = Enums.OrganizationUserStatusType.Invited,
|
||||
CreationDate = DateTime.UtcNow,
|
||||
RevisionDate = DateTime.UtcNow
|
||||
|
Reference in New Issue
Block a user