From 3ea873e4385909c35cc47daa7b0dd5d29e0a2356 Mon Sep 17 00:00:00 2001 From: SEAN Date: Sat, 28 Feb 2026 18:15:46 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=BB=A8=ED=8A=B8=EB=A1=A4=EB=9F=AC=20?= =?UTF-8?q?=EA=B6=8C=ED=95=9C(Authorization)=20=EC=84=A4=EC=A0=95=20?= =?UTF-8?q?=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95=20(#258)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - ServiceController: [Authorize(Roles = "Super")] → [Authorize] - AccountController: [Authorize(Roles = "Super")] → [Authorize] - MessageController: [Authorize] 추가 - StatsController: [Authorize] 추가 - PushController: [Authorize] 추가 Closes #258 --- SPMS.API/Controllers/AccountController.cs | 2 +- SPMS.API/Controllers/MessageController.cs | 2 ++ SPMS.API/Controllers/PushController.cs | 2 ++ SPMS.API/Controllers/ServiceController.cs | 2 +- SPMS.API/Controllers/StatsController.cs | 2 ++ 5 files changed, 8 insertions(+), 2 deletions(-) diff --git a/SPMS.API/Controllers/AccountController.cs b/SPMS.API/Controllers/AccountController.cs index 139a72c..5368afe 100644 --- a/SPMS.API/Controllers/AccountController.cs +++ b/SPMS.API/Controllers/AccountController.cs @@ -10,7 +10,7 @@ namespace SPMS.API.Controllers; [ApiController] [Route("v1/in/account")] [ApiExplorerSettings(GroupName = "account")] -[Authorize(Roles = "Super")] +[Authorize] public class AccountController : ControllerBase { private readonly IAccountService _accountService; diff --git a/SPMS.API/Controllers/MessageController.cs b/SPMS.API/Controllers/MessageController.cs index 200b6ab..e409669 100644 --- a/SPMS.API/Controllers/MessageController.cs +++ b/SPMS.API/Controllers/MessageController.cs @@ -1,3 +1,4 @@ +using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Swashbuckle.AspNetCore.Annotations; using SPMS.Application.DTOs.Message; @@ -10,6 +11,7 @@ namespace SPMS.API.Controllers; [ApiController] [Route("v1/in/message")] [ApiExplorerSettings(GroupName = "message")] +[Authorize] public class MessageController : ControllerBase { private readonly IMessageValidationService _validationService; diff --git a/SPMS.API/Controllers/PushController.cs b/SPMS.API/Controllers/PushController.cs index e2c5fb4..e08b40c 100644 --- a/SPMS.API/Controllers/PushController.cs +++ b/SPMS.API/Controllers/PushController.cs @@ -1,3 +1,4 @@ +using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Swashbuckle.AspNetCore.Annotations; using SPMS.Application.DTOs.Push; @@ -9,6 +10,7 @@ namespace SPMS.API.Controllers; [ApiController] [Route("v1/in/push")] [ApiExplorerSettings(GroupName = "push")] +[Authorize] public class PushController : ControllerBase { private readonly IPushService _pushService; diff --git a/SPMS.API/Controllers/ServiceController.cs b/SPMS.API/Controllers/ServiceController.cs index ddb0ed0..b13e944 100644 --- a/SPMS.API/Controllers/ServiceController.cs +++ b/SPMS.API/Controllers/ServiceController.cs @@ -11,7 +11,7 @@ namespace SPMS.API.Controllers; [ApiController] [Route("v1/in/service")] [ApiExplorerSettings(GroupName = "service")] -[Authorize(Roles = "Super")] +[Authorize] public class ServiceController : ControllerBase { private readonly IServiceManagementService _serviceManagementService; diff --git a/SPMS.API/Controllers/StatsController.cs b/SPMS.API/Controllers/StatsController.cs index 2fc1957..821f552 100644 --- a/SPMS.API/Controllers/StatsController.cs +++ b/SPMS.API/Controllers/StatsController.cs @@ -1,3 +1,4 @@ +using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Swashbuckle.AspNetCore.Annotations; using SPMS.Application.DTOs.Stats; @@ -9,6 +10,7 @@ namespace SPMS.API.Controllers; [ApiController] [Route("v1/in/stats")] [ApiExplorerSettings(GroupName = "stats")] +[Authorize] public class StatsController : ControllerBase { private readonly IStatsService _statsService;