feat: Add authorisation attribute to every components
Some checks failed
SonarQube Scan / SonarQube Trigger (push) Has been cancelled

This commit is contained in:
Namu
2025-11-30 22:56:06 +01:00
parent 11a7fdd998
commit f9809fb0ba
7 changed files with 15 additions and 0 deletions

View File

@@ -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

View File

@@ -1,5 +1,7 @@
<h3>HomeworkDisplay</h3>
@attribute [Authorize]
@using Microsoft.AspNetCore.Authorization
@using WorkManagementTool.Services
@using WorkManagementTool.Data.Entities;

View File

@@ -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

View File

@@ -1,5 +1,7 @@
@page "/school-subjects/creation"
@attribute [Authorize]
@using Microsoft.AspNetCore.Authorization
@using WorkManagementTool.Services
@using WorkManagementTool.Data.Entities;
@inject SchoolSubjectService SchoolSubjectService

View File

@@ -1,5 +1,7 @@
@rendermode InteractiveServer
@attribute [Authorize]
@using Microsoft.AspNetCore.Authorization
@using WorkManagementTool.Services
@inject SchoolSubjectService SchoolSubjectService

View File

@@ -1,4 +1,7 @@
@page "/school-subjects/{Id:int}"
@attribute [Authorize]
@using Microsoft.AspNetCore.Authorization
@using WorkManagementTool.Services
@using WorkManagementTool.Data.Entities;

View File

@@ -2,6 +2,8 @@
@rendermode InteractiveServer
@attribute [Authorize]
@using Microsoft.AspNetCore.Authorization
@using WorkManagementTool.Services
@using WorkManagementTool.Data.Entities;
@inject SchoolSubjectService SchoolSubjectService