fix : 角色查询bug
This commit is contained in:
parent
495e026157
commit
b50725a9c1
@ -57,7 +57,7 @@ public class IdentityAuthReq {
|
||||
private Set<String> featureCode = new HashSet<>();
|
||||
|
||||
/** 指定角色ID - 预览用,不需要用户已配置角色 **/
|
||||
private List<Long> specifyRoleIds;
|
||||
private Set<Long> specifyRoleIds;
|
||||
|
||||
|
||||
@Data
|
||||
|
||||
@ -329,6 +329,8 @@ public class TyrSaasAuthServiceImpl implements TyrSaasAuthService {
|
||||
relation.setWorkspaceId(k.getWorkspaceId());
|
||||
relation.setIdentityId(identityAuthReq.getIdentityId());
|
||||
relation.setIdentityType(identityAuthReq.getIdentityType().getCode());
|
||||
// 使用角色ID替代,不需要在查询一次
|
||||
relation.setId(id);
|
||||
return relation;
|
||||
}).collect(Collectors.toList());
|
||||
saasRoleUserRelations.addAll(relations);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user