fix(接口测试): 修复接口报告权限问题

--bug=1033726 --user=王孝刚 【接口测试】测试报告-操作-删除场景和用例报告失败 https://www.tapd.cn/55049933/s/1447576
This commit is contained in:
wxg0103 2023-12-22 16:15:33 +08:00 committed by 刘瑞斌
parent dc7ad041b7
commit 27733af365

View File

@ -32,12 +32,6 @@ public class ApiCheckPermissionService {
}
ApiScenarioReportWithBLOBs scenarioReport = apiScenarioReportMapper.selectByPrimaryKey(reportId);
ApiDefinitionExecResultWithBLOBs apiReport = apiDefinitionExecResultMapper.selectByPrimaryKey(reportId);
if (scenarioReport == null) {
if (apiReport == null) {
MSException.throwException(Translator.get("check_owner_report"));
}
MSException.throwException(Translator.get("check_owner_report"));
}
if (scenarioReport != null && (!projectIds.contains(scenarioReport.getProjectId()) ||
!SessionUtils.hasPermission(null, scenarioReport.getProjectId(), permissionId))) {
MSException.throwException(Translator.get("check_owner_report"));