carddav: add current-user-principal to server

This commit is contained in:
Simon Ser
2020-01-20 10:56:25 +01:00
parent d8ce7d353d
commit 3a61646ab4
4 changed files with 28 additions and 23 deletions

View File

@@ -223,6 +223,10 @@ func (b *backend) propfindAddressBook(propfind *internal.Propfind, ab *AddressBo
addressBookHomeSetName: func(*internal.RawXMLValue) (interface{}, error) {
return &addressbookHomeSet{Href: "/"}, nil
},
// TODO: this should be set on all resources
internal.CurrentUserPrincipalName: func(*internal.RawXMLValue) (interface{}, error) {
return &internal.CurrentUserPrincipal{Href: "/"}, nil
},
}
if ab.MaxResourceSize > 0 {