feat: Add authorisation attribute to every components
Some checks failed
SonarQube Scan / SonarQube Trigger (push) Has been cancelled
Some checks failed
SonarQube Scan / SonarQube Trigger (push) Has been cancelled
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
@page "/homeworks/creation/{IdSchoolSubject:int}"
|
||||
|
||||
@attribute [Authorize]
|
||||
@using System.Threading.Tasks
|
||||
@using Microsoft.AspNetCore.Authorization
|
||||
@using WorkManagementTool.Services
|
||||
@using WorkManagementTool.Data.Entities
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
<h3>HomeworkDisplay</h3>
|
||||
|
||||
@attribute [Authorize]
|
||||
@using Microsoft.AspNetCore.Authorization
|
||||
@using WorkManagementTool.Services
|
||||
@using WorkManagementTool.Data.Entities;
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
@page "/homeworks/{IdSchoolSubject:int}"
|
||||
@attribute [Authorize]
|
||||
@rendermode InteractiveServer
|
||||
@using Microsoft.AspNetCore.Authorization
|
||||
@using WorkManagementTool.Services
|
||||
@using WorkManagementTool.Data.Entities
|
||||
@inject HomeworkService HomeworkService
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
@page "/school-subjects/creation"
|
||||
|
||||
@attribute [Authorize]
|
||||
@using Microsoft.AspNetCore.Authorization
|
||||
@using WorkManagementTool.Services
|
||||
@using WorkManagementTool.Data.Entities;
|
||||
@inject SchoolSubjectService SchoolSubjectService
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
@rendermode InteractiveServer
|
||||
|
||||
@attribute [Authorize]
|
||||
@using Microsoft.AspNetCore.Authorization
|
||||
@using WorkManagementTool.Services
|
||||
@inject SchoolSubjectService SchoolSubjectService
|
||||
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
@page "/school-subjects/{Id:int}"
|
||||
|
||||
@attribute [Authorize]
|
||||
@using Microsoft.AspNetCore.Authorization
|
||||
@using WorkManagementTool.Services
|
||||
@using WorkManagementTool.Data.Entities;
|
||||
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
|
||||
@rendermode InteractiveServer
|
||||
|
||||
@attribute [Authorize]
|
||||
@using Microsoft.AspNetCore.Authorization
|
||||
@using WorkManagementTool.Services
|
||||
@using WorkManagementTool.Data.Entities;
|
||||
@inject SchoolSubjectService SchoolSubjectService
|
||||
|
||||
Reference in New Issue
Block a user