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