mirror of
https://github.com/bitwarden/server.git
synced 2025-04-05 05:00:19 -05:00
This is unneeded for restore
This commit is contained in:
parent
ff3a55385b
commit
a5c9a8c7dd
@ -1,6 +1,5 @@
|
|||||||
using Bit.Core.AdminConsole.Entities;
|
using Bit.Core.AdminConsole.Entities;
|
||||||
using Bit.Core.AdminConsole.Enums;
|
using Bit.Core.AdminConsole.Enums;
|
||||||
using Bit.Core.AdminConsole.OrganizationFeatures.OrganizationUsers.Interfaces;
|
|
||||||
using Bit.Core.AdminConsole.OrganizationFeatures.OrganizationUsers.RestoreOrganizationUser;
|
using Bit.Core.AdminConsole.OrganizationFeatures.OrganizationUsers.RestoreOrganizationUser;
|
||||||
using Bit.Core.AdminConsole.Services;
|
using Bit.Core.AdminConsole.Services;
|
||||||
using Bit.Core.Auth.UserFeatures.TwoFactorAuth.Interfaces;
|
using Bit.Core.Auth.UserFeatures.TwoFactorAuth.Interfaces;
|
||||||
@ -694,8 +693,5 @@ public class RestoreOrganizationUserCommandTests
|
|||||||
requestingOrganizationUser is { Type: OrganizationUserType.Owner });
|
requestingOrganizationUser is { Type: OrganizationUserType.Owner });
|
||||||
sutProvider.GetDependency<ICurrentContext>().ManageUsers(organization.Id).Returns(
|
sutProvider.GetDependency<ICurrentContext>().ManageUsers(organization.Id).Returns(
|
||||||
requestingOrganizationUser is { Type: OrganizationUserType.Owner or OrganizationUserType.Admin });
|
requestingOrganizationUser is { Type: OrganizationUserType.Owner or OrganizationUserType.Admin });
|
||||||
sutProvider.GetDependency<IHasConfirmedOwnersExceptQuery>()
|
|
||||||
.HasConfirmedOwnersExceptAsync(organization.Id, Arg.Any<IEnumerable<Guid>>())
|
|
||||||
.Returns(true);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user