mirror of
https://github.com/bitwarden/server.git
synced 2025-07-01 08:02:49 -05:00
adjust date validation for send (#1137)
This commit is contained in:
@ -122,6 +122,7 @@ namespace Bit.Api.Controllers
|
||||
[HttpPut("{id}")]
|
||||
public async Task<SendResponseModel> Put(string id, [FromBody] SendRequestModel model)
|
||||
{
|
||||
model.ValidateEdit();
|
||||
var userId = _userService.GetProperUserId(User).Value;
|
||||
var send = await _sendRepository.GetByIdAsync(new Guid(id));
|
||||
if (send == null || send.UserId != userId)
|
||||
|
Reference in New Issue
Block a user