fix(测试跟踪): 去掉评审关联用例时的权限控制

This commit is contained in:
shiziyuan9527 2021-03-29 10:47:30 +08:00
parent fd34e063ff
commit 74c1fafb71
1 changed files with 0 additions and 14 deletions

View File

@ -331,20 +331,6 @@ public class TestCaseReviewService {
} }
public void testReviewRelevance(ReviewRelevanceRequest request) { public void testReviewRelevance(ReviewRelevanceRequest request) {
String reviewId = request.getReviewId();
List<String> userIds = getTestCaseReviewerIds(reviewId);
String creator = "";
TestCaseReview review = testCaseReviewMapper.selectByPrimaryKey(reviewId);
if (review != null) {
creator = review.getCreator();
}
String currentId = SessionUtils.getUser().getId();
if (!userIds.contains(currentId) && !StringUtils.equals(creator, currentId)) {
MSException.throwException("没有权限,不能关联用例!");
}
List<String> testCaseIds = request.getTestCaseIds(); List<String> testCaseIds = request.getTestCaseIds();
if (testCaseIds.isEmpty()) { if (testCaseIds.isEmpty()) {