fix(项目设置): 同一用户组下项目缺陷模板复制权限的问题

--bug=1015881 --user=宋昌昌 【项目设置】用户有项目a和b缺陷模版的权限,在项目a复制缺陷模版,目标项目列表无项目b https://www.tapd.cn/55049933/s/1228093
This commit is contained in:
song-cc-rock 2022-08-19 16:52:02 +08:00 committed by 刘瑞斌
parent 595eae587b
commit cf37b81299
1 changed files with 1 additions and 2 deletions

View File

@ -289,8 +289,7 @@ public class IssueTemplateService extends TemplateBaseService {
while (iterator.hasNext()) {
ProjectDTO projectDto = iterator.next();
UserGroupExample example = new UserGroupExample();
example.createCriteria().andSourceIdEqualTo(projectDto.getId())
.andUserIdEqualTo(SessionUtils.getUserId()).andGroupIdIn(Arrays.asList(UserGroupConstants.PROJECT_ADMIN, UserGroupConstants.PROJECT_MEMBER));
example.createCriteria().andSourceIdEqualTo(projectDto.getId()).andUserIdEqualTo(SessionUtils.getUserId());
List<UserGroup> userGroups = userGroupMapper.selectByExample(example);
List<GroupPermissionDTO> groupPermissions = getPermissionsByUserGroups(userGroups);
boolean isShow = false;