Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
995dd36167
commit
317db37a04
@@ -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) {
|
func (s *Server) handleListEvents(w http.ResponseWriter, r *http.Request) {
|
||||||
var out []models.CalendarEvent
|
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)
|
writeJSON(w, http.StatusOK, out)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user