mirror of
https://github.com/1f349/go-webdav.git
synced 2024-12-23 00:34:23 +00:00
caldav, carddav: stop exposing home set props
These are principal properties, now handled by webdav.ServePrincipal.
This commit is contained in:
parent
c2b2f073cc
commit
c7b85859a2
@ -261,10 +261,6 @@ func (b *backend) propfindCalendar(propfind *internal.Propfind, cal *Calendar) (
|
|||||||
},
|
},
|
||||||
}, nil
|
}, nil
|
||||||
},
|
},
|
||||||
// TODO: this is a principal property
|
|
||||||
calendarHomeSetName: func(*internal.RawXMLValue) (interface{}, error) {
|
|
||||||
return &calendarHomeSet{Href: internal.Href{Path: "/"}}, nil
|
|
||||||
},
|
|
||||||
// TODO: this should be set on all resources
|
// TODO: this should be set on all resources
|
||||||
internal.CurrentUserPrincipalName: func(*internal.RawXMLValue) (interface{}, error) {
|
internal.CurrentUserPrincipalName: func(*internal.RawXMLValue) (interface{}, error) {
|
||||||
return &internal.CurrentUserPrincipal{Href: internal.Href{Path: "/"}}, nil
|
return &internal.CurrentUserPrincipal{Href: internal.Href{Path: "/"}}, nil
|
||||||
|
@ -360,10 +360,6 @@ func (b *backend) propfindAddressBook(propfind *internal.Propfind, ab *AddressBo
|
|||||||
},
|
},
|
||||||
}, nil
|
}, nil
|
||||||
},
|
},
|
||||||
// TODO: this is a principal property
|
|
||||||
addressBookHomeSetName: func(*internal.RawXMLValue) (interface{}, error) {
|
|
||||||
return &addressbookHomeSet{Href: internal.Href{Path: "/"}}, nil
|
|
||||||
},
|
|
||||||
// TODO: this should be set on all resources
|
// TODO: this should be set on all resources
|
||||||
internal.CurrentUserPrincipalName: func(*internal.RawXMLValue) (interface{}, error) {
|
internal.CurrentUserPrincipalName: func(*internal.RawXMLValue) (interface{}, error) {
|
||||||
return &internal.CurrentUserPrincipal{Href: internal.Href{Path: "/"}}, nil
|
return &internal.CurrentUserPrincipal{Href: internal.Href{Path: "/"}}, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user