diff --git a/Web-Jarmark/Web-Jarmark/Components/Pages/Admin/CategoriEdit.razor b/Web-Jarmark/Web-Jarmark/Components/Pages/Admin/CategoriEdit.razor index b995ff1..86fee53 100644 --- a/Web-Jarmark/Web-Jarmark/Components/Pages/Admin/CategoriEdit.razor +++ b/Web-Jarmark/Web-Jarmark/Components/Pages/Admin/CategoriEdit.razor @@ -10,7 +10,10 @@ @using Web_Jarmark.Data.Models @inject ApplicationDbContext Db @inject NavigationManager Nav +@using Microsoft.AspNetCore.Authorization +@attribute [Authorize] + @(Id is null ? "Nová kategorie" : "Upravit kategorii")

@(Id is null ? "Nová kategorie" : "Upravit kategorii")

@@ -51,7 +54,7 @@ else Zrušit } - +
@code { [Parameter] public int? Id { get; set; } diff --git a/Web-Jarmark/Web-Jarmark/Components/Pages/Admin/CategoriList.razor b/Web-Jarmark/Web-Jarmark/Components/Pages/Admin/CategoriList.razor index 023e11e..6125e05 100644 --- a/Web-Jarmark/Web-Jarmark/Components/Pages/Admin/CategoriList.razor +++ b/Web-Jarmark/Web-Jarmark/Components/Pages/Admin/CategoriList.razor @@ -5,7 +5,10 @@ @using Web_Jarmark.Data.Models @inject ApplicationDbContext Db @inject NavigationManager Nav +@using Microsoft.AspNetCore.Authorization +@attribute [Authorize] + Kategorie
@@ -64,7 +67,7 @@ else } - + @code { private List? categories; private string? error; @@ -109,4 +112,4 @@ else } private record CategoryRow(int Id, string Name, string Slug, bool IsActive, int ProductCount); -} \ No newline at end of file +} diff --git a/Web-Jarmark/Web-Jarmark/Components/Pages/Admin/ProductEdit.razor b/Web-Jarmark/Web-Jarmark/Components/Pages/Admin/ProductEdit.razor index 78be197..ace99d1 100644 --- a/Web-Jarmark/Web-Jarmark/Components/Pages/Admin/ProductEdit.razor +++ b/Web-Jarmark/Web-Jarmark/Components/Pages/Admin/ProductEdit.razor @@ -7,7 +7,10 @@ @using Web_Jarmark.Data.Models @inject ApplicationDbContext Db @inject NavigationManager Nav +@using Microsoft.AspNetCore.Authorization +@attribute [Authorize] + @(Id is null ? "Nové zboží" : "Upravit zboží")

@(Id is null ? "Nové zboží" : "Upravit zboží")

@@ -86,7 +89,7 @@ else Zrušit } - +
@code { [Parameter] public int? Id { get; set; } diff --git a/Web-Jarmark/Web-Jarmark/Components/Pages/Admin/ProductList.razor b/Web-Jarmark/Web-Jarmark/Components/Pages/Admin/ProductList.razor index 3c0ad75..70736e7 100644 --- a/Web-Jarmark/Web-Jarmark/Components/Pages/Admin/ProductList.razor +++ b/Web-Jarmark/Web-Jarmark/Components/Pages/Admin/ProductList.razor @@ -4,7 +4,10 @@ @using Web_Jarmark.Data @using Web_Jarmark.Data.Models @inject ApplicationDbContext Db +@using Microsoft.AspNetCore.Authorization +@attribute [Authorize] + Zboží
@@ -60,7 +63,7 @@ else } - + @code { private List? products; private string? error; diff --git a/Web-Jarmark/Web-Jarmark/jarmark.db-shm b/Web-Jarmark/Web-Jarmark/jarmark.db-shm index 6ef8a1d..8158c1c 100644 Binary files a/Web-Jarmark/Web-Jarmark/jarmark.db-shm and b/Web-Jarmark/Web-Jarmark/jarmark.db-shm differ