AddCurrentUserPrivilegeSet to find caldav

This commit is contained in:
Melon 2024-05-27 14:27:48 +01:00
parent 906087cd59
commit 63f15c0ec6
Signed by: melon
GPG Key ID: 6C9D970C50D26A25

View File

@ -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