mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-06 05:59:15 +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
6cc8826732
commit
e3748b2e95
@ -529,7 +529,10 @@ class calendar_ical extends calendar_boupdate
|
|||||||
case 'CLASS':
|
case 'CLASS':
|
||||||
$attributes['CLASS'] = $event['public'] ? 'PUBLIC' : 'PRIVATE';
|
$attributes['CLASS'] = $event['public'] ? 'PUBLIC' : 'PRIVATE';
|
||||||
// Apple iCal on OS X uses X-CALENDARSERVER-ACCESS: CONFIDENTIAL on VCALANDAR (not VEVENT!)
|
// 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;
|
break;
|
||||||
|
|
||||||
case 'ORGANIZER':
|
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!)
|
// 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'))
|
!is_a($x_calendarserver_access, 'PEAR_Error'))
|
||||||
{
|
{
|
||||||
$event['public'] = (int)(strtoupper($x_calendarserver_access) == 'PUBLIC');
|
$event['public'] = (int)(strtoupper($x_calendarserver_access) == 'PUBLIC');
|
||||||
|
Loading…
Reference in New Issue
Block a user