1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-04 20:50:21 -05:00

This is unneeded for restore

This commit is contained in:
jrmccannon 2025-03-20 10:30:24 -05:00
parent ff3a55385b
commit a5c9a8c7dd
No known key found for this signature in database
GPG Key ID: CF03F3DB01CE96A6

View File

@ -1,6 +1,5 @@
using Bit.Core.AdminConsole.Entities;
using Bit.Core.AdminConsole.Enums;
using Bit.Core.AdminConsole.OrganizationFeatures.OrganizationUsers.Interfaces;
using Bit.Core.AdminConsole.OrganizationFeatures.OrganizationUsers.RestoreOrganizationUser;
using Bit.Core.AdminConsole.Services;
using Bit.Core.Auth.UserFeatures.TwoFactorAuth.Interfaces;
@ -694,8 +693,5 @@ public class RestoreOrganizationUserCommandTests
requestingOrganizationUser is { Type: OrganizationUserType.Owner });
sutProvider.GetDependency<ICurrentContext>().ManageUsers(organization.Id).Returns(
requestingOrganizationUser is { Type: OrganizationUserType.Owner or OrganizationUserType.Admin });
sutProvider.GetDependency<IHasConfirmedOwnersExceptQuery>()
.HasConfirmedOwnersExceptAsync(organization.Id, Arg.Any<IEnumerable<Guid>>())
.Returns(true);
}
}