From 63f15c0ec6cd5c8b1ef23303119d66b77b7f2cb4 Mon Sep 17 00:00:00 2001 From: MrMelon54 Date: Mon, 27 May 2024 14:27:48 +0100 Subject: [PATCH] AddCurrentUserPrivilegeSet to find caldav --- caldav/server.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/caldav/server.go b/caldav/server.go index 7ddfffc..95ee691 100644 --- a/caldav/server.go +++ b/caldav/server.go @@ -563,6 +563,9 @@ func (b *backend) propFindCalendar(ctx context.Context, propfind *internal.PropF Size: cal.MaxResourceSize, }) } + props[internal.CurrentUserPrivilegeSetName] = func(*internal.RawXMLValue) (interface{}, error) { + return &internal.CurrentUserPrivilegeSet{Privilege: internal.NewAllPrivileges()}, nil + } // TODO: CALDAV:calendar-timezone, CALDAV:supported-calendar-component-set, CALDAV:min-date-time, CALDAV:max-date-time, CALDAV:max-instances, CALDAV:max-attendees-per-instance