Changeset View
Changeset View
Standalone View
Standalone View
lib/Kolab/CardDAV/Plugin.php
Context not available. | |||||
*/ | */ | ||||
public function propFindEarly(DAV\PropFind $propFind, DAV\INode $node) | public function propFindEarly(DAV\PropFind $propFind, DAV\INode $node) | ||||
{ | { | ||||
// publish global ldap address book for this principal | // publish global ldap address book and resources list for this principal | ||||
if ($node instanceof DAVACL\IPrincipal && empty($this->directories) && \rcube::get_instance()->config->get('kolabdav_ldap_directory')) { | if ($node instanceof DAVACL\IPrincipal && empty($this->directories)) { | ||||
$this->directories[] = self::ADDRESSBOOK_ROOT . '/' . $node->getName() . '/' . LDAPDirectory::DIRECTORY_NAME; | if (\rcube::get_instance()->config->get('kolabdav_ldap_directory')) { | ||||
$this->directories[] = self::ADDRESSBOOK_ROOT . '/' . $node->getName() . '/' . LDAPDirectory::DIRECTORY_NAME; | |||||
} | |||||
if (\rcube::get_instance()->config->get('kolabdav_ldap_resources')) { | |||||
$this->directories[] = self::ADDRESSBOOK_ROOT . '/' . $node->getName() . '/' . LDAPResources::DIRECTORY_NAME; | |||||
} | |||||
} | } | ||||
parent::propFindEarly($propFind, $node); | parent::propFindEarly($propFind, $node); | ||||
Context not available. | |||||
} | } | ||||
// query on LDAP node: pass along filter query | // query on LDAP node: pass along filter query | ||||
if ($node instanceof LDAPDirectory) { | if ($node instanceof LDAPDirectory || $node instanceof LDAPResources) { | ||||
$query = new CardDAV\AddressBookQueryParser($dom); | $query = new CardDAV\AddressBookQueryParser($dom); | ||||
$query->parse(); | $query->parse(); | ||||
Context not available. |