mirror of
https://github.com/bitwarden/server.git
synced 2024-11-28 13:15:12 +01:00
Fixing templates and logic issue in Revoke command.
This commit is contained in:
parent
1c3e4d8601
commit
35643c15dc
@ -95,7 +95,7 @@ public class RevokeNonCompliantOrganizationUserCommand(IOrganizationUserReposito
|
||||
return result;
|
||||
}
|
||||
|
||||
if (IsNonOwnerRevokingAnOwner(userToRevoke, request.ActionPerformedBy))
|
||||
if (!IsNonOwnerRevokingAnOwner(userToRevoke, request.ActionPerformedBy))
|
||||
{
|
||||
result.ErrorMessages.Add($"{OnlyOwnersCanRevokeOtherOwners}");
|
||||
return result;
|
||||
|
@ -1,5 +1,5 @@
|
||||
{{#>BasicTextLayout}}
|
||||
Your user account has been revoked from the {{OrganizationName}} organization because your account is part of multiple organizations. Before you can rejoin {{OrganizationName}}, you must first leave all other organizations.
|
||||
|
||||
To leave an organization, first log in the {{link "web app" "https://vault.bitwarden.com/#/login"}}, select the three dot menu next to the organization name, and select Leave.
|
||||
To leave an organization, first log in the web app (https://vault.bitwarden.com/#/login), select the three dot menu next to the organization name, and select Leave.
|
||||
{{/BasicTextLayout}}
|
||||
|
@ -3,5 +3,5 @@
|
||||
configured. Before you can re-join this organization you need to set up two-step login on your user account.
|
||||
|
||||
Learn how to enable two-step login on your user account at
|
||||
{{link "https://help.bitwarden.com/article/setup-two-step-login/"}}
|
||||
https://help.bitwarden.com/article/setup-two-step-login/
|
||||
{{/BasicTextLayout}}
|
||||
|
@ -289,7 +289,7 @@ public class HandlebarsMailService : IMailService
|
||||
WebVaultUrl = _globalSettings.BaseServiceUri.VaultWithHash,
|
||||
SiteName = _globalSettings.SiteName
|
||||
};
|
||||
await AddMessageContentAsync(message, "OrganizationUserRemovedForPolicyTwoStep", model);
|
||||
await AddMessageContentAsync(message, "AdminConsole.OrganizationUserRemovedForPolicyTwoStep", model);
|
||||
message.Category = "OrganizationUserRemovedForPolicyTwoStep";
|
||||
await _mailDeliveryService.SendEmailAsync(message);
|
||||
}
|
||||
@ -303,7 +303,7 @@ public class HandlebarsMailService : IMailService
|
||||
WebVaultUrl = _globalSettings.BaseServiceUri.VaultWithHash,
|
||||
SiteName = _globalSettings.SiteName
|
||||
};
|
||||
await AddMessageContentAsync(message, "OrganizationUserRevokedForTwoFactorPolicy", model);
|
||||
await AddMessageContentAsync(message, "AdminConsole.OrganizationUserRevokedForTwoFactorPolicy", model);
|
||||
message.Category = "OrganizationUserRevokedForTwoFactorPolicy";
|
||||
await _mailDeliveryService.SendEmailAsync(message);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user