This commit is contained in:
ls
2025-02-23 21:49:40 +08:00
parent 13bb0305d0
commit 891a9398c2

View File

@@ -320,7 +320,7 @@ public class ExperimentReportController extends JeecgController<ExperimentReport
return Result.error("用户未登录!");
}
Experiment experiment = experimentService.getById(experimentReport.getExperimentId());
if (StringUtils.equals(experimentReport.getCreateBy(), username) || StringUtils.equals(experiment.getCreateBy(), username)) {
if (!(StringUtils.equals(experimentReport.getCreateBy(), username) || StringUtils.equals(experiment.getCreateBy(), username))) {
return Result.error("您无权进行撤回!");
}
ExperimentReport report = experimentReportService.getById(experimentReport.getId());