1
0
mirror of https://github.com/bitwarden/server synced 2026-01-09 12:03:21 +00:00

Add data recovery tool flag (#6659)

This commit is contained in:
Bernd Schoolmann
2025-12-03 19:19:46 +01:00
committed by GitHub
parent 98212a7f49
commit ed7a234eeb
2 changed files with 2 additions and 1 deletions

View File

@@ -80,7 +80,7 @@ public class AccountsKeyManagementController : Controller
[HttpPost("key-management/regenerate-keys")]
public async Task RegenerateKeysAsync([FromBody] KeyRegenerationRequestModel request)
{
if (!_featureService.IsEnabled(FeatureFlagKeys.PrivateKeyRegeneration))
if (!_featureService.IsEnabled(FeatureFlagKeys.PrivateKeyRegeneration) && !_featureService.IsEnabled(FeatureFlagKeys.DataRecoveryTool))
{
throw new NotFoundException();
}