remove permissions on get requests

This commit is contained in:
ngfrolov 2023-12-21 15:31:15 +05:00
parent 85d0aca9a8
commit af343626a7
Signed by untrusted user who does not match committer: ng.frolov
GPG Key ID: E99907A0357B29A7

View File

@ -45,7 +45,6 @@ namespace AsbCloudWebApi.Controllers.SAUB
/// <param name = "token" >Токен завершения задачи</param> /// <param name = "token" >Токен завершения задачи</param>
/// <returns></returns> /// <returns></returns>
[HttpGet("{idWell}")] [HttpGet("{idWell}")]
[Permission]
public async Task<ActionResult<IEnumerable<WitsRecordDto>>> GetDataAsync([Required] int idWell, public async Task<ActionResult<IEnumerable<WitsRecordDto>>> GetDataAsync([Required] int idWell,
[FromQuery] GtrWithGetDataRequest request, [FromQuery] GtrWithGetDataRequest request,
CancellationToken token) CancellationToken token)
@ -75,7 +74,6 @@ namespace AsbCloudWebApi.Controllers.SAUB
/// <param name="token"></param> /// <param name="token"></param>
/// <returns></returns> /// <returns></returns>
[HttpGet("{idWell}/{idRecord}")] [HttpGet("{idWell}/{idRecord}")]
[Permission]
public async Task<ActionResult<IEnumerable<WitsItemRecordDto>>> GetLastDataByRecordIdAsync(int idWell, int idRecord, CancellationToken token) public async Task<ActionResult<IEnumerable<WitsItemRecordDto>>> GetLastDataByRecordIdAsync(int idWell, int idRecord, CancellationToken token)
{ {
int? idCompany = User.GetCompanyId(); int? idCompany = User.GetCompanyId();