fix(消息管理): 修复查看消息设置的权限

This commit is contained in:
guoyuqi 2024-02-07 17:59:36 +08:00 committed by Yuki Guo
parent a739d09cf9
commit f9fbae540d
1 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ public class NoticeMessageTaskController {
@GetMapping("message/task/get/{projectId}") @GetMapping("message/task/get/{projectId}")
@Operation(summary = "项目管理-消息管理-消息设置-获取消息设置") @Operation(summary = "项目管理-消息管理-消息设置-获取消息设置")
@RequiresPermissions(PermissionConstants.PROJECT_MESSAGE_READ_ADD) @RequiresPermissions(PermissionConstants.PROJECT_MESSAGE_READ)
@CheckOwner(resourceId = "#projectId", resourceType = "project") @CheckOwner(resourceId = "#projectId", resourceType = "project")
public List<MessageTaskDTO> getMessageList(@PathVariable String projectId) throws IOException { public List<MessageTaskDTO> getMessageList(@PathVariable String projectId) throws IOException {
return noticeMessageTaskService.getMessageList(projectId); return noticeMessageTaskService.getMessageList(projectId);
@ -62,7 +62,7 @@ public class NoticeMessageTaskController {
@GetMapping("message/template/detail/{projectId}") @GetMapping("message/template/detail/{projectId}")
@Operation(summary = "项目管理-消息管理-消息设置-查看消息模版详情") @Operation(summary = "项目管理-消息管理-消息设置-查看消息模版详情")
@RequiresPermissions(PermissionConstants.PROJECT_MESSAGE_READ_ADD) @RequiresPermissions(PermissionConstants.PROJECT_MESSAGE_READ)
public MessageTemplateConfigDTO getTemplateDetail(@PathVariable String projectId, @Schema(description = "消息配置功能类型") public MessageTemplateConfigDTO getTemplateDetail(@PathVariable String projectId, @Schema(description = "消息配置功能类型")
@RequestParam(value = "taskType") String taskType, @Schema(description = "消息配置场景") @RequestParam(value = "taskType") String taskType, @Schema(description = "消息配置场景")
@RequestParam(value = "event") String event, @Schema(description = "消息配置机器人id") @RequestParam(value = "event") String event, @Schema(description = "消息配置机器人id")