forked from ddrilling/AsbCloudServer
fix drillingProgram permissions
This commit is contained in:
parent
055e6daf85
commit
6a0289f216
@ -82,7 +82,7 @@ namespace AsbCloudWebApi.Controllers
|
||||
/// <param name="idWell"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost("ClearError")]
|
||||
[Permission]
|
||||
[Permission("DrillingProgram.get")]
|
||||
public IActionResult ClearError(int idWell)
|
||||
{
|
||||
drillingProgramService.ClearError(idWell);
|
||||
@ -98,7 +98,7 @@ namespace AsbCloudWebApi.Controllers
|
||||
/// <param name="token"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost("part/{idFileCategory}")]
|
||||
[Permission]
|
||||
[Permission("DrillingProgram.get")]
|
||||
[ProducesResponseType(typeof(int), (int)System.Net.HttpStatusCode.OK)]
|
||||
public async Task<IActionResult> AddFile(
|
||||
int idWell,
|
||||
@ -249,7 +249,7 @@ namespace AsbCloudWebApi.Controllers
|
||||
/// <param name="token"> Токен отмены задачи </param>
|
||||
/// <returns></returns>
|
||||
[HttpPost("fileMark")]
|
||||
[Permission]
|
||||
[Permission("DrillingProgram.get")]
|
||||
public async Task<IActionResult> AddOrReplaceFileMarkAsync(int idWell, FileMarkDto markDto, CancellationToken token)
|
||||
{
|
||||
var idCompany = User.GetCompanyId();
|
||||
@ -275,7 +275,7 @@ namespace AsbCloudWebApi.Controllers
|
||||
/// <param name="token"> Токен отмены задачи </param>
|
||||
/// <returns></returns>
|
||||
[HttpDelete("fileMark/{idMark}")]
|
||||
[Permission]
|
||||
[Permission("DrillingProgram.get")]
|
||||
[ProducesResponseType(typeof(int), (int)System.Net.HttpStatusCode.OK)]
|
||||
public async Task<IActionResult> MarkAsDeletedFileMarkAsync(int idWell, int idMark,
|
||||
CancellationToken token)
|
||||
|
Loading…
Reference in New Issue
Block a user