aboutsummaryrefslogtreecommitdiff
path: root/API/Controllers
diff options
context:
space:
mode:
Diffstat (limited to 'API/Controllers')
-rw-r--r--API/Controllers/UserController.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/API/Controllers/UserController.cs b/API/Controllers/UserController.cs
index 922119e..187b4e9 100644
--- a/API/Controllers/UserController.cs
+++ b/API/Controllers/UserController.cs
@@ -5,7 +5,7 @@ using AutoMapper;
using Microsoft.AspNetCore.Mvc;
using Data.Models.DTOs;
using Microsoft.AspNetCore.Authorization;
-
+using Data.Models.Classes;
namespace API.Controllers
{
@@ -39,7 +39,7 @@ namespace API.Controllers
//Read
[HttpGet]
- [Authorize(Roles = Data.Models.Classes.Roles.Admin)]
+ [Authorize(Roles = UserRoles.Admin)]
public async Task<IActionResult> GetById(int id)
{
return await this._service.GetUserById(id);