feat:(REQ-2227) 修改角色分组查询的bug
This commit is contained in:
parent
dee4ce0652
commit
344d032f9b
@ -790,7 +790,7 @@ public class TyrSaasAuthServiceImpl implements TyrSaasAuthService {
|
||||
@Override
|
||||
public List<ListPermissionFromRoleGroupResp> listAuthByResourceAndRoleGroup(ListPermissionFromRoleGroupReq listPermissionFromRoleGroupReq) {
|
||||
//确定角色group_id: code对应角色组及其下级
|
||||
List<SaasRoleGroup> groups = roleGroupService.listByCodes(Collections.singletonList(listPermissionFromRoleGroupReq.getCategoryCode()), 2);
|
||||
List<SaasRoleGroup> groups = roleGroupService.listByCodes(Collections.singletonList(listPermissionFromRoleGroupReq.getCategoryCode()), 3);
|
||||
if (CollectionUtil.isEmpty(groups)) {
|
||||
log.warn("no role group found for code :{}", listPermissionFromRoleGroupReq.getCategoryCode());
|
||||
return Collections.emptyList();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user