From afe6b234cf557041cb2073c4fc69416dd0f3792e Mon Sep 17 00:00:00 2001 From: Leslie Date: Tue, 31 Dec 2024 11:38:04 +0800 Subject: [PATCH] =?UTF-8?q?fixed:=20=E4=BF=AE=E5=A4=8D=E9=80=92=E5=BD=92?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E8=A7=92=E8=89=B2=E5=88=97=E8=A1=A8=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E7=BC=BA=E5=A4=B1=E9=97=AE=E9=A2=98=20(#1974)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/service/system/sys_authority.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/service/system/sys_authority.go b/server/service/system/sys_authority.go index 087da6a4e5..e5a5fcbf11 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 {