From cc2cef5b2705c08d0fb49bd7d3751add6aacffc9 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 12 Feb 2019 11:49:35 -0500 Subject: [PATCH] pass org admin flag for attachment actions --- src/Api/Controllers/CiphersController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Api/Controllers/CiphersController.cs b/src/Api/Controllers/CiphersController.cs index bf85ef960..7b85beae9 100644 --- a/src/Api/Controllers/CiphersController.cs +++ b/src/Api/Controllers/CiphersController.cs @@ -477,7 +477,7 @@ namespace Bit.Api.Controllers await Request.GetFileAsync(async (stream, fileName, key) => { await _cipherService.CreateAttachmentAsync(cipher, stream, fileName, key, - Request.ContentLength.GetValueOrDefault(0), userId); + Request.ContentLength.GetValueOrDefault(0), userId, true); }); return new CipherResponseModel(cipher, _globalSettings); @@ -532,7 +532,7 @@ namespace Bit.Api.Controllers throw new NotFoundException(); } - await _cipherService.DeleteAttachmentAsync(cipher, attachmentId, userId, false); + await _cipherService.DeleteAttachmentAsync(cipher, attachmentId, userId, true); } private void ValidateAttachment()