mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-11-29 08:56:03 +00:00
1 parent
bc33199083
commit
1ca8284bdc
25 files changed
+251
-33
No files matched your search
+2
-14
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user