Przeglądaj źródła

Merge branch 'feature/pool294_fa_calendar' into debug

xyxie 1 miesiąc temu
rodzic
commit
d7c8cc29b1
1 zmienionych plików z 1 dodań i 1 usunięć
  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 {