AddCurrentUserPrivilegeSet to find caldav

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

View File

@ -573,6 +573,9 @@ func (b *backend) propFindCalendar(ctx context.Context, propfind *internal.PropF
return &maxResourceSize{Size: cal.MaxResourceSize}, nil
}
}
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