summaryrefslogtreecommitdiff
path: root/plugins/libcalendaring
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-09-23 10:27:57 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2014-09-23 10:27:57 (GMT)
commitb278db0ec3b208f779e4f217ea241708bea8f3e0 (patch)
tree8334d64b48aa49c01c3f8859c71bb58c171c4b77 /plugins/libcalendaring
parentf0b205cb2e6ca3efb5c069afff88847259eb8ddc (diff)
downloadroundcubemail-plugins-kolab-b278db0ec3b208f779e4f217ea241708bea8f3e0.tar.gz
Pre-select confidential event/tasks folder for iTip invitations marked as confidential (#3451)
+ display privacy classification of iTip attachments in mail invitation view.
Diffstat (limited to 'plugins/libcalendaring')
-rw-r--r--plugins/libcalendaring/lib/libcalendaring_itip.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/libcalendaring/lib/libcalendaring_itip.php b/plugins/libcalendaring/lib/libcalendaring_itip.php
index 6740bfa..5ce2f09 100644
--- a/plugins/libcalendaring/lib/libcalendaring_itip.php
+++ b/plugins/libcalendaring/lib/libcalendaring_itip.php
@@ -434,6 +434,8 @@ class libcalendaring_itip
$emails = $this->lib->get_user_emails();
$title = $event['sequence'] > 0 ? $this->gettext('itipupdate') : $this->gettext('itipinvitation');
$metadata['rsvp'] = true;
+ $metadata['sensitivity'] = $event['sensitivity'];
+
if (is_object($event['start'])) {
$metadata['date'] = $event['start']->format('U');
}
@@ -621,6 +623,10 @@ class libcalendaring_itip
$table->add('label', $this->plugin->gettext('location'), $this->domain);
$table->add('location', Q($event['location']));
}
+ if ($event['sensitivity'] && $event['sensitivity'] != 'public') {
+ $table->add('label', $this->plugin->gettext('sensitivity'), $this->domain);
+ $table->add('sensitivity', ucfirst($this->plugin->gettext($event['sensitivity'])) . '!');
+ }
if ($event['comment']) {
$table->add('label', $this->plugin->gettext('comment'), $this->domain);
$table->add('location', Q($event['comment']));