From f9fbae540d97e20195a4fa37a640bcbb9dd0ae16 Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Wed, 7 Feb 2024 17:59:36 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B6=88=E6=81=AF=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9F=A5=E7=9C=8B=E6=B6=88=E6=81=AF=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E7=9A=84=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../project/controller/NoticeMessageTaskController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/services/project-management/src/main/java/io/metersphere/project/controller/NoticeMessageTaskController.java b/backend/services/project-management/src/main/java/io/metersphere/project/controller/NoticeMessageTaskController.java index 5ee2d95d32..4cd34ffb8e 100644 --- a/backend/services/project-management/src/main/java/io/metersphere/project/controller/NoticeMessageTaskController.java +++ b/backend/services/project-management/src/main/java/io/metersphere/project/controller/NoticeMessageTaskController.java @@ -46,7 +46,7 @@ public class NoticeMessageTaskController { @GetMapping("message/task/get/{projectId}") @Operation(summary = "项目管理-消息管理-消息设置-获取消息设置") - @RequiresPermissions(PermissionConstants.PROJECT_MESSAGE_READ_ADD) + @RequiresPermissions(PermissionConstants.PROJECT_MESSAGE_READ) @CheckOwner(resourceId = "#projectId", resourceType = "project") public List getMessageList(@PathVariable String projectId) throws IOException { return noticeMessageTaskService.getMessageList(projectId); @@ -62,7 +62,7 @@ public class NoticeMessageTaskController { @GetMapping("message/template/detail/{projectId}") @Operation(summary = "项目管理-消息管理-消息设置-查看消息模版详情") - @RequiresPermissions(PermissionConstants.PROJECT_MESSAGE_READ_ADD) + @RequiresPermissions(PermissionConstants.PROJECT_MESSAGE_READ) public MessageTemplateConfigDTO getTemplateDetail(@PathVariable String projectId, @Schema(description = "消息配置功能类型") @RequestParam(value = "taskType") String taskType, @Schema(description = "消息配置场景") @RequestParam(value = "event") String event, @Schema(description = "消息配置机器人id")