feat(api): применены права ко всем контроллерам и методам
This commit is contained in:
@@ -4,12 +4,12 @@ using PARR.API.Contracts.V1;
|
||||
using PARR.API.Contracts.V1.Responses.Base;
|
||||
using PARR.API.Controllers.V1.Base;
|
||||
using PARR.API.Services.Interfaces;
|
||||
using PARR.Constants;
|
||||
using PARR.DAL.CacheServices;
|
||||
using PARR.DAL.TransformServices;
|
||||
|
||||
namespace PARR.API.Controllers.V1
|
||||
{
|
||||
[Authorize]
|
||||
public class TestController : BaseApiController
|
||||
{
|
||||
private readonly IClientService clientService;
|
||||
@@ -28,8 +28,6 @@ namespace PARR.API.Controllers.V1
|
||||
/// Получить мой ip
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[Authorize(Roles = ParrRoles.Administrator.Role)]
|
||||
//[Authorize]
|
||||
[HttpGet(ApiRoutes.Test.GetMyIp)]
|
||||
public IActionResult GetMyIp()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user