diff --git a/Tsi1.Api/Tsi1.Api/Controllers/SectionController.cs b/Tsi1.Api/Tsi1.Api/Controllers/SectionController.cs index fec06cedfeebbe1c8181033f3e2715eb2a53713b..81946f2c304d9d9862e5a186937fee95d0ca7f32 100644 --- a/Tsi1.Api/Tsi1.Api/Controllers/SectionController.cs +++ b/Tsi1.Api/Tsi1.Api/Controllers/SectionController.cs @@ -1,14 +1,14 @@ -using System; -using System.Collections.Generic; -using System.Linq; +using System.Collections.Generic; using System.Threading.Tasks; -using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Tsi1.BusinessLayer.Dtos; +using Tsi1.BusinessLayer.Helpers; using Tsi1.BusinessLayer.Interfaces; namespace Tsi1.Api.Controllers { + [Authorize(Roles = UserTypes.Professor)] [Route("api/[controller]")] [ApiController] public class SectionController : ControllerBase