Skip to content
Snippets Groups Projects
Commit 284c5e84 authored by Lucca Santangelo's avatar Lucca Santangelo
Browse files

add authorization to controller

parent beb15ee1
No related branches found
No related tags found
2 merge requests!26Develop,!21course sections
Pipeline #10298 passed
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment