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 241dcfb9b3
commit 748e42abfb

View file

@ -295,7 +295,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 {