Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tsi1-backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Rodrigo Sastre Marotta
tsi1-backend
Commits
284c5e84
Commit
284c5e84
authored
4 years ago
by
Lucca Santangelo
Browse files
Options
Downloads
Patches
Plain Diff
add authorization to controller
parent
beb15ee1
No related branches found
Branches containing commit
No related tags found
2 merge requests
!26
Develop
,
!21
course sections
Pipeline
#10298
passed
4 years ago
Stage: external
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Tsi1.Api/Tsi1.Api/Controllers/SectionController.cs
+4
-4
4 additions, 4 deletions
Tsi1.Api/Tsi1.Api/Controllers/SectionController.cs
with
4 additions
and
4 deletions
Tsi1.Api/Tsi1.Api/Controllers/SectionController.cs
+
4
−
4
View file @
284c5e84
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment