From 317db37a0439c00f0a987555ca50318e4da3c34a Mon Sep 17 00:00:00 2001 From: theorose49 Date: Tue, 30 Jun 2026 16:15:17 +0900 Subject: [PATCH] =?UTF-8?q?feat(calendar):=20=EC=9D=BC=EC=A0=95=20?= =?UTF-8?q?=EB=AA=A9=EB=A1=9D=EC=9D=84=20=EC=A0=84=20=EA=B5=AC=EC=84=B1?= =?UTF-8?q?=EC=9B=90=20=EA=B3=B5=EC=9C=A0=EB=A1=9C=20=EB=B0=98=ED=99=98(?= =?UTF-8?q?=ED=8E=B8=EC=A7=91=C2=B7=EC=82=AD=EC=A0=9C=EB=8A=94=20=EC=86=8C?= =?UTF-8?q?=EC=9C=A0=EC=9E=90=EB=A7=8C)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.8 (1M context) --- internal/httpapi/handlers_calendar.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/httpapi/handlers_calendar.go b/internal/httpapi/handlers_calendar.go index 2fc28ce..91b38fe 100644 --- a/internal/httpapi/handlers_calendar.go +++ b/internal/httpapi/handlers_calendar.go @@ -10,9 +10,11 @@ import ( // 개인 캘린더 — 각자 본인 이벤트만 보고 관리(분류: 프로젝트/기타/개인 + 색). +// handleListEvents returns ALL members' events (회사 공유 캘린더) so the UI can +// filter by member checkboxes. Editing/deleting stays owner-only. func (s *Server) handleListEvents(w http.ResponseWriter, r *http.Request) { var out []models.CalendarEvent - s.db.Where("lower(owner_email) = lower(?)", s.email(r)).Order("start asc").Find(&out) + s.db.Order("start asc").Find(&out) writeJSON(w, http.StatusOK, out) }