From 903c1836eb54ee0bc464f95732c08565eaa56e6d Mon Sep 17 00:00:00 2001 From: LD-Reborn Date: Mon, 13 Oct 2025 15:58:46 +0200 Subject: [PATCH] Fixed missing authorization for /Home endpoints --- src/Controllers/HomeController.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Controllers/HomeController.cs b/src/Controllers/HomeController.cs index 6b8645e..cfd5b81 100644 --- a/src/Controllers/HomeController.cs +++ b/src/Controllers/HomeController.cs @@ -27,6 +27,7 @@ public class HomeController : Controller return View(); } + [Authorize] [HttpGet("Assets")] public async Task Assets() { @@ -47,12 +48,14 @@ public class HomeController : Controller return View(new HomeIndexViewModel() { AssetsTableViewModels = assetsTableViewModels }); } + [Authorize] [HttpGet("Inventory")] public ActionResult Inventory() { return View(); } + [Authorize] [HttpGet("Locations")] public async Task LocationsAsync() { @@ -71,6 +74,7 @@ public class HomeController : Controller return View(new LocationsIndexViewModel() { LocationTableViewModels = LocationsTableViewModels }); } + [Authorize] [HttpGet("Users")] public async Task UsersAsync() { @@ -91,6 +95,7 @@ public class HomeController : Controller return View(new UsersIndexViewModel() { UserTableViewModels = UserTableViewModels }); } + [Authorize] [HttpGet("Groups")] public async Task GroupsAsync() {