AddCurrentUserPrivilegeSet to find caldav

This commit is contained in:
Melon 2024-05-27 14:27:48 +01:00 committed by Captain ALM
parent 266c39c655
commit 757f4a8c2a
Signed by: alfred
GPG Key ID: 4E4ADD02609997B1

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