This commit is contained in:
@@ -70,6 +70,7 @@ namespace AyaNova.Api.Controllers
|
|||||||
/// <param name="id"></param>
|
/// <param name="id"></param>
|
||||||
/// <param name="inObj"></param>
|
/// <param name="inObj"></param>
|
||||||
/// <returns>list</returns>
|
/// <returns>list</returns>
|
||||||
|
[Authorize]
|
||||||
[HttpPut("{id}")]
|
[HttpPut("{id}")]
|
||||||
public async Task<IActionResult> PutAttachment([FromRoute] long id, [FromBody] UpdateAttachmentInfo inObj)
|
public async Task<IActionResult> PutAttachment([FromRoute] long id, [FromBody] UpdateAttachmentInfo inObj)
|
||||||
{
|
{
|
||||||
@@ -146,6 +147,7 @@ namespace AyaNova.Api.Controllers
|
|||||||
///
|
///
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>file attachment list for object</returns>
|
/// <returns>file attachment list for object</returns>
|
||||||
|
[Authorize]
|
||||||
[HttpGet("List")]
|
[HttpGet("List")]
|
||||||
public async Task<IActionResult> GetList([FromQuery] AyaType ayaType, [FromQuery] long ayaId)
|
public async Task<IActionResult> GetList([FromQuery] AyaType ayaType, [FromQuery] long ayaId)
|
||||||
{
|
{
|
||||||
@@ -432,7 +434,6 @@ namespace AyaNova.Api.Controllers
|
|||||||
return StatusCode(401, new ApiErrorResponse(ApiErrorCode.AUTHENTICATION_FAILED));
|
return StatusCode(401, new ApiErrorResponse(ApiErrorCode.AUTHENTICATION_FAILED));
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO: EVENT LOG THIS SHIT
|
|
||||||
|
|
||||||
var utcNow = new DateTimeOffset(DateTime.Now.ToUniversalTime(), TimeSpan.Zero);
|
var utcNow = new DateTimeOffset(DateTime.Now.ToUniversalTime(), TimeSpan.Zero);
|
||||||
if (DownloadUser.DlKeyExpire < utcNow.DateTime)
|
if (DownloadUser.DlKeyExpire < utcNow.DateTime)
|
||||||
|
|||||||
Reference in New Issue
Block a user