From be2d1a76729b3ecea19f14d70b4a09b683c3ca3b Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Fri, 25 Aug 2023 14:07:26 +0800 Subject: [PATCH] update --- app/admin/hdl/hdl_comm.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/admin/hdl/hdl_comm.go b/app/admin/hdl/hdl_comm.go index 6308df9..ebe8e6c 100644 --- a/app/admin/hdl/hdl_comm.go +++ b/app/admin/hdl/hdl_comm.go @@ -46,7 +46,13 @@ func MenuList(c *gin.Context) { var tempRespMap = map[string]*md.PermissionGroupListResp{} var tempRespMapKeys []string for _, v := range *groupList { - isCheck := false + var isCheck bool + if admin.IsSuperAdministrator == enum.IsSuperAdministratorTure { + isCheck = true + } else { + isCheck = false + } + if utils.InArr(utils.IntToStr(v.Id), adminHasPermissionGroupIds) { isCheck = true }