From eb409d97784733c48f62a8b19658540cae2e1c4e Mon Sep 17 00:00:00 2001 From: jessikitty Date: Thu, 21 May 2026 13:56:40 +1000 Subject: [PATCH] feat: Add [Authorize] to AdminController --- Controllers/AdminController.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Controllers/AdminController.cs b/Controllers/AdminController.cs index dd35ae2..40fe4c3 100644 --- a/Controllers/AdminController.cs +++ b/Controllers/AdminController.cs @@ -1,9 +1,11 @@ +using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using NoticeBoard.Data; namespace NoticeBoard.Controllers; +[Authorize] public class AdminController : Controller { private readonly AppDbContext _db;