Do not check delegator context when loading kolab objects

This commit is contained in:
Aleksander Machniak 2013-11-06 10:20:15 +01:00
parent f24a1da34b
commit 4090c49ede

View file

@ -169,6 +169,11 @@ class kolab_delegation extends rcube_plugin
// So we can handle event invitations on behalf of delegator
// @TODO: should we do this only in delegators' folders?
// skip invalid messages or Kolab objects (for better performance)
if (empty($args['object']->headers) || $args['object']->headers->get('x-kolab-type', false)) {
return $args;
}
$engine = $this->engine();
$context = $engine->delegator_context_from_message($args['object']);