added collection to /principals/ resourcetype and principal-collection-set to root

This commit is contained in:
Ralf Becker 2011-09-17 12:29:51 +00:00
parent cea61e2436
commit f61e4dfcfa

View File

@ -322,8 +322,9 @@ class groupdav extends HTTP_WebDAV_Server
'path' => '/principals/',
'props' => array(
self::mkprop('displayname',lang('Accounts')),
self::mkprop('resourcetype',array(self::mkprop('principals',''))),
self::mkprop('resourcetype',array(self::mkprop('principals',''),self::mkprop('collection',''))),
self::mkprop('current-user-principal',array(self::mkprop('href',$this->principalURL))),
self::mkprop('principal-collection-set',self::mkprop('href', $this->base_uri.'/principals/')),
//self::mkprop(groupdav::CALDAV,'calendar-home-set',array(
// self::mkprop('href',$this->base_uri.$user_prefix))),
//self::mkprop(groupdav::CARDDAV,'addressbook-home-set',array(