fix(项目设置): 同一用户组下项目缺陷模板复制权限的问题
--bug=1015881 --user=宋昌昌 【项目设置】用户有项目a和b缺陷模版的权限,在项目a复制缺陷模版,目标项目列表无项目b https://www.tapd.cn/55049933/s/1228093
This commit is contained in:
parent
595eae587b
commit
cf37b81299
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue