mirror of
https://github.com/bitwarden/server.git
synced 2024-11-25 12:45:18 +01:00
Update src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/RevokeNonCompliantOrganizationUserCommand.cs
Co-authored-by: Rui Tomé <108268980+r-tome@users.noreply.github.com>
This commit is contained in:
parent
47cc5456c1
commit
9427b9ff4c
@ -14,12 +14,12 @@ public class RevokeNonCompliantOrganizationUserCommand(IOrganizationUserReposito
|
|||||||
IHasConfirmedOwnersExceptQuery confirmedOwnersExceptQuery,
|
IHasConfirmedOwnersExceptQuery confirmedOwnersExceptQuery,
|
||||||
TimeProvider timeProvider) : IRevokeNonCompliantOrganizationUserCommand
|
TimeProvider timeProvider) : IRevokeNonCompliantOrganizationUserCommand
|
||||||
{
|
{
|
||||||
public const string CannotRevokeSelfMessage = "You cannot revoke yourself.";
|
public const string ErrorCannotRevokeSelf = "You cannot revoke yourself.";
|
||||||
public const string OnlyOwnersCanRevokeOtherOwners = "Only owners can revoke other owners.";
|
public const string ErrorOnlyOwnersCanRevokeOtherOwners = "Only owners can revoke other owners.";
|
||||||
public const string UserAlreadyRevoked = "User is already revoked.";
|
public const string ErrorUserAlreadyRevoked = "User is already revoked.";
|
||||||
public const string OrgMustHaveAtLeastOneOwner = "Organization must have at least one confirmed owner.";
|
public const string ErrorOrgMustHaveAtLeastOneOwner = "Organization must have at least one confirmed owner.";
|
||||||
public const string InvalidUsers = "Invalid users.";
|
public const string ErrorInvalidUsers = "Invalid users.";
|
||||||
public const string RequestedByWasNotValid = "Action was performed by an unexpected type.";
|
public const string ErrorRequestedByWasNotValid = "Action was performed by an unexpected type.";
|
||||||
|
|
||||||
public async Task<CommandResult> RevokeNonCompliantOrganizationUsersAsync(RevokeOrganizationUsers request)
|
public async Task<CommandResult> RevokeNonCompliantOrganizationUsersAsync(RevokeOrganizationUsers request)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user