From ec97b15c393aa45b31ee13374418e9a4af0f6c54 Mon Sep 17 00:00:00 2001 From: Anton Romanov Date: Wed, 29 Jan 2025 10:35:08 +0400 Subject: [PATCH] Add controller permissions --- src/main/java/ru/ulstu/admin/service/AdminController.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/ru/ulstu/admin/service/AdminController.java b/src/main/java/ru/ulstu/admin/service/AdminController.java index 3ae0e5c..78dc074 100644 --- a/src/main/java/ru/ulstu/admin/service/AdminController.java +++ b/src/main/java/ru/ulstu/admin/service/AdminController.java @@ -13,6 +13,7 @@ import ru.ulstu.model.UserRoleConstants; @Controller @RequestMapping("/admin") +@Secured({UserRoleConstants.ADMIN}) public class AdminController { private final AdminService adminService;