1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-05 13:08:17 -05:00

Variable/Field/Property renames

This commit is contained in:
jrmccannon 2025-03-24 12:33:02 -05:00
parent 44b817ad03
commit 5f41d1eb23
No known key found for this signature in database
GPG Key ID: CF03F3DB01CE96A6
5 changed files with 8 additions and 8 deletions

View File

@ -43,7 +43,7 @@ public class InviteOrganizationUsersCommand(IEventService eventService,
public async Task<CommandResult<ScimInviteOrganizationUsersResponse>> InviteScimOrganizationUserAsync(OrganizationUserSingleEmailInvite request)
{
var hasSecretsManager = await paymentService.HasSecretsManagerStandalone(request.InviteOrganization);
var hasSecretsManagerStandalone = await paymentService.HasSecretsManagerStandalone(request.InviteOrganization);
var orgUsers = await organizationUserRepository.GetManyDetailsByOrganizationAsync(request.InviteOrganization.OrganizationId);
@ -55,7 +55,7 @@ public class InviteOrganizationUsersCommand(IEventService eventService,
new UserAlreadyExistsError(new ScimInviteOrganizationUsersResponse(request)));
}
var result = await InviteOrganizationUsersAsync(new InviteOrganizationUsersRequest(request, hasSecretsManager));
var result = await InviteOrganizationUsersAsync(new InviteOrganizationUsersRequest(request, hasSecretsManagerStandalone));
switch (result)
{

View File

@ -26,7 +26,7 @@ public class CreateOrganizationUser
CreationDate = performedAt.UtcDateTime,
RevisionDate = performedAt.UtcDateTime
},
Collections = o.AccessibleCollections,
Collections = o.AssignedCollections,
Groups = o.Groups
};
}

View File

@ -10,7 +10,7 @@ namespace Bit.Core.AdminConsole.OrganizationFeatures.OrganizationUsers.InviteUse
public class OrganizationUserInvite
{
public string[] Emails { get; private init; } = [];
public CollectionAccessSelection[] AccessibleCollections { get; private init; } = [];
public CollectionAccessSelection[] AssignedCollections { get; private init; } = [];
public OrganizationUserType Type { get; private init; } = OrganizationUserType.User;
public Permissions Permissions { get; private init; } = new();
public string ExternalId { get; private init; } = string.Empty;
@ -34,7 +34,7 @@ public class OrganizationUserInvite
return new OrganizationUserInvite
{
Emails = emails,
AccessibleCollections = accessibleCollections.ToArray(),
AssignedCollections = accessibleCollections.ToArray(),
Type = type,
Permissions = permissions,
ExternalId = externalId,

View File

@ -6,7 +6,7 @@ namespace Bit.Core.AdminConsole.OrganizationFeatures.OrganizationUsers.InviteUse
public class OrganizationUserInviteDto
{
public string Email { get; private init; } = string.Empty;
public CollectionAccessSelection[] AccessibleCollections { get; private init; } = [];
public CollectionAccessSelection[] AssignedCollections { get; private init; } = [];
public string ExternalId { get; private init; } = string.Empty;
public Permissions Permissions { get; private init; } = new();
public OrganizationUserType Type { get; private init; } = OrganizationUserType.User;
@ -19,7 +19,7 @@ public class OrganizationUserInviteDto
return new OrganizationUserInviteDto
{
Email = email,
AccessibleCollections = invite.AccessibleCollections,
AssignedCollections = invite.AssignedCollections,
ExternalId = invite.ExternalId,
Type = invite.Type,
Permissions = invite.Permissions,

View File

@ -50,6 +50,6 @@ public class InviteOrganizationUsersRequestTests
Assert.NotNull(invite);
Assert.Contains(validEmail, invite.Emails);
Assert.Contains(validCollectionConfiguration, invite.AccessibleCollections);
Assert.Contains(validCollectionConfiguration, invite.AssignedCollections);
}
}