fix(Bug修复): 特色专区开通工作台后跳转403
原因:判断是否保留当前操作用户时,错误的将gitlink用户id和平台用户id做比对
This commit is contained in:
parent
3c4940517b
commit
d72c0bb535
|
|
@ -184,7 +184,9 @@ public class PmsEnterpriseServiceImpl implements IPmsEnterpriseService {
|
|||
if (pmsEnterpriseMapper.selectPmsEnterpriseByGitlinkOrgId(gitlinkOrgId) != null) {
|
||||
throw new ServiceException("该组织已开通组织工作台,请勿重复开通");
|
||||
}
|
||||
boolean isContainCurrentUser = gitLinkUserToEnterpriseInputVoList.stream().anyMatch(x -> SecurityUtils.getUserId().equals(x.getUserId()));
|
||||
boolean isContainCurrentUser = gitLinkUserToEnterpriseInputVoList
|
||||
.stream()
|
||||
.anyMatch(x -> SecurityUtils.getGitlinkUserId() != null && SecurityUtils.getGitlinkUserId().equals(x.getUserId()));
|
||||
if (!isContainCurrentUser) {
|
||||
throw new ServiceException("开通组织工作台需保留当前操作用户");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue