We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1743c76 commit afe6b23Copy full SHA for afe6b23
server/service/system/sys_authority.go
@@ -224,7 +224,10 @@ func (authorityService *AuthorityService) GetStructAuthorityList(authorityID uin
224
if len(authorities) > 0 {
225
for k := range authorities {
226
list = append(list, authorities[k].AuthorityId)
227
- _, err = authorityService.GetStructAuthorityList(authorities[k].AuthorityId)
+ childrenList, err := authorityService.GetStructAuthorityList(authorities[k].AuthorityId)
228
+ if err == nil {
229
+ list = append(list, childrenList...)
230
+ }
231
}
232
233
if *auth.ParentId == 0 {
0 commit comments