Skip partstat filter when kolab_invitation_calendars=false (T1179)

This commit is contained in:
Aleksander Machniak 2016-04-07 08:18:23 -04:00
parent f73ccbaa8c
commit 43b9b3cdab

View file

@ -289,7 +289,9 @@ class kolab_calendar extends kolab_storage_folder_api
}
// set partstat filter to skip pending and declined invitations
if (empty($filter_query) && $this->get_namespace() != 'other') {
if (empty($filter_query) && $this->cal->rc->config->get('kolab_invitation_calendars')
&& $this->get_namespace() != 'other'
) {
$partstat_exclude = array('NEEDS-ACTION','DECLINED');
}
else {