Require writeable calendar
This commit is contained in:
parent
054b3902b2
commit
dc3a82198b
1 changed files with 1 additions and 1 deletions
|
@ -1978,7 +1978,7 @@ class calendar extends rcube_plugin
|
|||
$invitation = $itip->get_invitation($token);
|
||||
|
||||
// save the event to his/her default calendar if not yet present
|
||||
if (!$this->driver->get_event($this->event) && ($calendar = $this->get_default_calendar())) {
|
||||
if (!$this->driver->get_event($this->event) && ($calendar = $this->get_default_calendar(true))) {
|
||||
$invitation['event']['calendar'] = $calendar['id'];
|
||||
if ($this->driver->new_event($invitation['event']))
|
||||
$this->rc->output->command('display_message', $this->gettext(array('name' => 'importedsuccessfully', 'vars' => array('calendar' => $calendar['name']))), 'confirmation');
|
||||
|
|
Loading…
Add table
Reference in a new issue