Browse Source

fix:显示共有权限和私有权限

zqbao 11 tháng trước cách đây
mục cha
commit
0fcf5f2e07
1 tập tin đã thay đổi với 2 bổ sung5 xóa
  1. 2 5
      controllers/user.go

+ 2 - 5
controllers/user.go

@@ -579,12 +579,9 @@ func (this *UserAuthController) PermissionList() {
 			}
 		}
 	}
-	if len(privateView) == 0 {
-		br.Data = publicView
-	} else {
-		br.Data = privateView
-	}
 
+	publicView = append(publicView, privateView...)
+	br.Data = publicView
 	br.Msg = "查询成功"
 	br.Success = true
 	br.Ret = 200