Skip to content

Commit

Permalink
fixed: 修复递归获取角色列表数据缺失问题 (#1974)
Browse files Browse the repository at this point in the history
  • Loading branch information
JaydenForYou authored Dec 31, 2024
1 parent 1743c76 commit afe6b23
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/service/system/sys_authority.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,10 @@ func (authorityService *AuthorityService) GetStructAuthorityList(authorityID uin
if len(authorities) > 0 {
for k := range authorities {
list = append(list, authorities[k].AuthorityId)
_, err = authorityService.GetStructAuthorityList(authorities[k].AuthorityId)
childrenList, err := authorityService.GetStructAuthorityList(authorities[k].AuthorityId)
if err == nil {
list = append(list, childrenList...)
}
}
}
if *auth.ParentId == 0 {
Expand Down

0 comments on commit afe6b23

Please sign in to comment.