fix(项目管理): 修复模版权限显示错误的缺陷

--bug=1035421 --user=王孝刚 【项目管理】项目管理-项目与权限-用户组-项目成员-模版勾选所有权限-用户查看模版提示无权限
https://www.tapd.cn/55049933/s/1470676
This commit is contained in:
wxg0103 2024-03-06 19:33:04 +08:00 committed by 刘瑞斌
parent 54c0764f4f
commit ce1c141a50
3 changed files with 4 additions and 4 deletions

View File

@ -366,7 +366,7 @@ public class ApiFileResourceService {
try {
fileId = fileMetadataService.transferFile(request.getFileName(), request.getProjectId(), request.getModuleId(), currentUser, bytes);
} catch (Exception e) {
throw new MSException(Translator.get("file.transfer.error"));
throw new MSException(Translator.get("file.transfer.failed"));
}
return fileId;
}

View File

@ -210,7 +210,7 @@ public class BugAttachmentService {
public String transfer(BugFileTransferRequest request, String currentUser) {
BugLocalAttachment attachment = getLocalFile(request);
if (attachment == null) {
throw new MSException(Translator.get("file.transfer.error"));
throw new MSException(Translator.get("file.transfer.failed"));
}
byte[] bytes = getLocalFileBytes(attachment, request.getProjectId(), request.getBugId());
String fileId;
@ -222,7 +222,7 @@ public class BugAttachmentService {
// 删除本地上传的附件
deleteLocalFile(request.getBugId(), null, request.getProjectId(), null, attachment.getId(), null);
} catch (Exception e) {
throw new MSException(Translator.get("file.transfer.error"));
throw new MSException(Translator.get("file.transfer.failed"));
}
return fileId;
}

View File

@ -136,7 +136,7 @@ public class FunctionalCaseAttachmentController {
} catch (MSException e) {
throw new MSException(e);
} catch (Exception e) {
throw new MSException(Translator.get("file.transfer.error"));
throw new MSException(Translator.get("file.transfer.failed"));
}
return fileId;