1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-28 13:15:12 +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:
Jared McCannon 2024-11-15 09:45:41 -06:00 committed by GitHub
parent 47cc5456c1
commit 9427b9ff4c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,12 +14,12 @@ public class RevokeNonCompliantOrganizationUserCommand(IOrganizationUserReposito
IHasConfirmedOwnersExceptQuery confirmedOwnersExceptQuery,
TimeProvider timeProvider) : IRevokeNonCompliantOrganizationUserCommand
{
public const string CannotRevokeSelfMessage = "You cannot revoke yourself.";
public const string OnlyOwnersCanRevokeOtherOwners = "Only owners can revoke other owners.";
public const string UserAlreadyRevoked = "User is already revoked.";
public const string OrgMustHaveAtLeastOneOwner = "Organization must have at least one confirmed owner.";
public const string InvalidUsers = "Invalid users.";
public const string RequestedByWasNotValid = "Action was performed by an unexpected type.";
public const string ErrorCannotRevokeSelf = "You cannot revoke yourself.";
public const string ErrorOnlyOwnersCanRevokeOtherOwners = "Only owners can revoke other owners.";
public const string ErrorUserAlreadyRevoked = "User is already revoked.";
public const string ErrorOrgMustHaveAtLeastOneOwner = "Organization must have at least one confirmed owner.";
public const string ErrorInvalidUsers = "Invalid users.";
public const string ErrorRequestedByWasNotValid = "Action was performed by an unexpected type.";
public async Task<CommandResult> RevokeNonCompliantOrganizationUsersAsync(RevokeOrganizationUsers request)
{