瀏覽代碼

Merge branch 'feature/pool294_fa_calendar' into debug

xyxie 1 月之前
父節點
當前提交
d7c8cc29b1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      controller/fe_calendar/fe_calendar.go

+ 1 - 1
controller/fe_calendar/fe_calendar.go

@@ -41,7 +41,7 @@ func PermissionList(c *gin.Context) {
 	}
 	parents := make([]*chart_permission.SimpleChartPermission, 0)
 	parentPermissions := make(map[int][]*chart_permission.SimpleChartPermission, 0)
-	showPermissionIds := make(map[int]struct{}, 0)
+	showPermissionIds := make(map[int]struct{})
 	for _, v := range permissions {
 		if v.ParentId > 0 && utils.InArrayByInt(validPermissionIds, int(v.ChartPermissionID)) && utils.InArrayByInt(matterPermissionIds, int(v.ChartPermissionID)) {
 			if parentPermissions[v.ParentId] == nil {