fix(接口测试): 修复接口报告删除判断所属权限问题
--bug=1033726 --user=王孝刚 【接口测试】测试报告-操作-删除场景和用例报告失败 https://www.tapd.cn/55049933/s/1446706
This commit is contained in:
parent
1516d97201
commit
e41c091300
|
@ -38,22 +38,14 @@ public class ApiCheckPermissionService {
|
|||
}
|
||||
MSException.throwException(Translator.get("check_owner_report"));
|
||||
}
|
||||
if (scenarioReport != null) {
|
||||
if (!projectIds.contains(scenarioReport.getProjectId())) {
|
||||
if (scenarioReport != null && (!projectIds.contains(scenarioReport.getProjectId()) ||
|
||||
!SessionUtils.hasPermission(null, scenarioReport.getProjectId(), permissionId))) {
|
||||
MSException.throwException(Translator.get("check_owner_report"));
|
||||
}
|
||||
if (SessionUtils.hasPermission(null, scenarioReport.getProjectId(), permissionId)) {
|
||||
if (apiReport != null && (!projectIds.contains(apiReport.getProjectId()) ||
|
||||
!SessionUtils.hasPermission(null, apiReport.getProjectId(), permissionId))) {
|
||||
MSException.throwException(Translator.get("check_owner_report"));
|
||||
}
|
||||
}
|
||||
if (apiReport != null) {
|
||||
if (!projectIds.contains(apiReport.getProjectId())) {
|
||||
MSException.throwException(Translator.get("check_owner_report"));
|
||||
}
|
||||
if (SessionUtils.hasPermission(null, apiReport.getProjectId(), permissionId)) {
|
||||
MSException.throwException(Translator.get("check_owner_report"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue