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