mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
use X-CALENDARSERVER-ACCESS attribute on vCalendar only for CalDAV, not eg. for file export and import
This commit is contained in:
parent
e72d659ae2
commit
99b7fc66a0
@ -529,7 +529,10 @@ class calendar_ical extends calendar_boupdate
|
||||
case 'CLASS':
|
||||
$attributes['CLASS'] = $event['public'] ? 'PUBLIC' : 'PRIVATE';
|
||||
// Apple iCal on OS X uses X-CALENDARSERVER-ACCESS: CONFIDENTIAL on VCALANDAR (not VEVENT!)
|
||||
if (!$event['public']) $vcal->setAttribute('X-CALENDARSERVER-ACCESS', 'CONFIDENTIAL');
|
||||
if (!$event['public'] && $this->productManufacturer == 'GroupDAV')
|
||||
{
|
||||
$vcal->setAttribute('X-CALENDARSERVER-ACCESS', 'CONFIDENTIAL');
|
||||
}
|
||||
break;
|
||||
|
||||
case 'ORGANIZER':
|
||||
@ -2998,7 +3001,8 @@ class calendar_ical extends calendar_boupdate
|
||||
}
|
||||
|
||||
// Apple iCal on OS X uses X-CALENDARSERVER-ACCESS: CONFIDENTIAL on VCALANDAR (not VEVENT!)
|
||||
if (($x_calendarserver_access = $component->_container->getAttribute('X-CALENDARSERVER-ACCESS')) &&
|
||||
if ($this->productManufacturer == 'GroupDAV' &&
|
||||
($x_calendarserver_access = $component->_container->getAttribute('X-CALENDARSERVER-ACCESS')) &&
|
||||
!is_a($x_calendarserver_access, 'PEAR_Error'))
|
||||
{
|
||||
$event['public'] = (int)(strtoupper($x_calendarserver_access) == 'PUBLIC');
|
||||
|
Loading…
Reference in New Issue
Block a user