mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-30 03:24:47 +00:00
Correct errors in GET for confidential events.
This commit is contained in:
parent
ed9b96018d
commit
5a81f0370a
@ -50,7 +50,7 @@ else if ( $qry->rows == 1 && ! $request->IsCollection() ) {
|
||||
if ( $event->class == 'CONFIDENTIAL' && ! $request->AllowedTo('modify') ) {
|
||||
// if the event is confidential we fake one that just says "Busy"
|
||||
$confidential = new iCalComponent();
|
||||
$confidential->SetType($first->GetType());
|
||||
$confidential->SetType($event->caldav_type);
|
||||
$confidential->AddProperty( 'SUMMARY', translate('Busy') );
|
||||
$confidential->AddProperty( 'CLASS', 'CONFIDENTIAL' );
|
||||
$confidential->SetProperties( $first->GetProperties('DTSTART'), 'DTSTART' );
|
||||
@ -130,13 +130,13 @@ else {
|
||||
if ( $event->class == 'CONFIDENTIAL' ) {
|
||||
// if the event is confidential we fake one that just says "Busy"
|
||||
$confidential = new iCalComponent();
|
||||
$confidential->SetType($first->GetType());
|
||||
$confidential->SetType($resource->GetType());
|
||||
$confidential->AddProperty( 'SUMMARY', translate('Busy') );
|
||||
$confidential->AddProperty( 'CLASS', 'CONFIDENTIAL' );
|
||||
$confidential->SetProperties( $first->GetProperties('DTSTART'), 'DTSTART' );
|
||||
$confidential->SetProperties( $first->GetProperties('RRULE'), 'RRULE' );
|
||||
$confidential->SetProperties( $first->GetProperties('DURATION'), 'DURATION' );
|
||||
$confidential->SetProperties( $first->GetProperties('DTEND'), 'DTEND' );
|
||||
$confidential->SetProperties( $resource->GetProperties('DTSTART'), 'DTSTART' );
|
||||
$confidential->SetProperties( $resource->GetProperties('RRULE'), 'RRULE' );
|
||||
$confidential->SetProperties( $resource->GetProperties('DURATION'), 'DURATION' );
|
||||
$confidential->SetProperties( $resource->GetProperties('DTEND'), 'DTEND' );
|
||||
|
||||
$vcal->AddComponent($confidential);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user