mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-18 01:31:21 +00:00
Really fix the cut and paste error here.
This commit is contained in:
parent
5a81f0370a
commit
09feb2e2ab
@ -50,6 +50,11 @@ else if ( $qry->rows == 1 && ! $request->IsCollection() ) {
|
|||||||
if ( $event->class == 'CONFIDENTIAL' && ! $request->AllowedTo('modify') ) {
|
if ( $event->class == 'CONFIDENTIAL' && ! $request->AllowedTo('modify') ) {
|
||||||
// if the event is confidential we fake one that just says "Busy"
|
// if the event is confidential we fake one that just says "Busy"
|
||||||
$confidential = new iCalComponent();
|
$confidential = new iCalComponent();
|
||||||
|
|
||||||
|
$ical = new iCalComponent( $event->caldav_data );
|
||||||
|
$resources = $ical->GetComponents('VTIMEZONE',false);
|
||||||
|
$first = $resources[0];
|
||||||
|
|
||||||
$confidential->SetType($event->caldav_type);
|
$confidential->SetType($event->caldav_type);
|
||||||
$confidential->AddProperty( 'SUMMARY', translate('Busy') );
|
$confidential->AddProperty( 'SUMMARY', translate('Busy') );
|
||||||
$confidential->AddProperty( 'CLASS', 'CONFIDENTIAL' );
|
$confidential->AddProperty( 'CLASS', 'CONFIDENTIAL' );
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user