mirror of
https://github.com/bitwarden/server.git
synced 2025-07-01 08:02:49 -05:00
Refuse upload renew if a file is validated (#1284)
Download should return regardless of file validation state
This commit is contained in:
@ -365,7 +365,7 @@ namespace Bit.Core.Services
|
||||
{
|
||||
var attachments = cipher?.GetAttachments() ?? new Dictionary<string, CipherAttachment.MetaData>();
|
||||
|
||||
if (!attachments.ContainsKey(attachmentId) || attachments[attachmentId].Validated)
|
||||
if (!attachments.ContainsKey(attachmentId))
|
||||
{
|
||||
throw new NotFoundException();
|
||||
}
|
||||
|
Reference in New Issue
Block a user