fix(项目管理): 修复checkOwner报错传惨错误导致用户保存出现其他错误提示问题
--bug=1035497 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001035497
This commit is contained in:
parent
d41dd5d159
commit
917849e1f3
|
@ -39,7 +39,7 @@ public class NoticeMessageTaskController {
|
|||
@Operation(summary = "项目管理-消息管理-消息设置-保存消息设置")
|
||||
@RequiresPermissions(value = {PermissionConstants.PROJECT_MESSAGE_READ_ADD, PermissionConstants.PROJECT_MESSAGE_READ_UPDATE}, logical = Logical.OR)
|
||||
@Log(type = OperationLogType.UPDATE, expression = "#msClass.addLog(#messageTaskRequest)", msClass = MessageTaskLogService.class)
|
||||
@CheckOwner(resourceId = "#request.projectId", resourceType = "project")
|
||||
@CheckOwner(resourceId = "#messageTaskRequest.projectId", resourceType = "project")
|
||||
public ResultHolder saveMessage(@Validated({Created.class, Updated.class}) @RequestBody MessageTaskRequest messageTaskRequest) {
|
||||
return noticeMessageTaskService.saveMessageTask(messageTaskRequest, SessionUtils.getUserId());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue