Explorar el Código

Merge branch 'feature/pool294_fa_calendar' into debug

xyxie hace 1 mes
padre
commit
d7c8cc29b1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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 {