diff --git a/server/service/system/sys_authority.go b/server/service/system/sys_authority.go index 087da6a4e..e5a5fcbf1 100644 --- a/server/service/system/sys_authority.go +++ b/server/service/system/sys_authority.go @@ -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 {