Add ROOM as a principal type

This hopefully resolves #282.
This commit is contained in:
Andrew Ruthven committed 2024-01-21 19:12:42 +13:00
1 parent bc33199083
commit 1ca8284bdc
25 files changed
+251 -33

No files matched your search

+2 -14
View File
@@ -560,20 +560,8 @@ class DAVPrincipal extends Principal
* and https://tools.ietf.org/html/rfc5545#section-3.2.3
*/
$type = 'UNKNOWN';
if ( isset($this->type_id) ) {
switch ( $this->type_id ) {
case 1:
$type = 'INDIVIDUAL';
break;
case 2:
$type = 'RESOURCE';
break;
case 3:
$type = 'GROUP';
break;
// 'ROOM' type is not supported yet
}
}
if ( isset($this->type_label) )
$type = $this->type_label;
$reply->CalDAVElement($prop, 'calendar-user-type', $type);
break;