diff options
author | Georg Ehrke <developer@georgehrke.com> | 2019-02-20 20:22:56 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2019-03-21 16:32:41 +0100 |
commit | d74e49b3e6859c56c0c30f61e81cb1e45a657150 (patch) | |
tree | 686f8f46900c0b14d44125873c0d55a5c826a7be /apps/dav/lib/CalDAV/ResourceBooking/AbstractPrincipalBackend.php | |
parent | 0155edc195ed278a2a4d06c15295433ae0ae8445 (diff) | |
download | nextcloud-server-d74e49b3e6859c56c0c30f61e81cb1e45a657150.tar.gz nextcloud-server-d74e49b3e6859c56c0c30f61e81cb1e45a657150.zip |
implement principal property search for calendar user address set property
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'apps/dav/lib/CalDAV/ResourceBooking/AbstractPrincipalBackend.php')
-rw-r--r-- | apps/dav/lib/CalDAV/ResourceBooking/AbstractPrincipalBackend.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/dav/lib/CalDAV/ResourceBooking/AbstractPrincipalBackend.php b/apps/dav/lib/CalDAV/ResourceBooking/AbstractPrincipalBackend.php index d658c3433f2..90d147f6741 100644 --- a/apps/dav/lib/CalDAV/ResourceBooking/AbstractPrincipalBackend.php +++ b/apps/dav/lib/CalDAV/ResourceBooking/AbstractPrincipalBackend.php @@ -244,6 +244,14 @@ abstract class AbstractPrincipalBackend implements BackendInterface { $stmt->closeCursor(); break; + case '{urn:ietf:params:xml:ns:caldav}calendar-user-address-set': + // If you add support for more search properties that qualify as a user-address, + // please also add them to the array below + $results[] = $this->searchPrincipals($this->principalPrefix, [ + '{http://sabredav.org/ns}email-address' => $value, + ], 'anyof'); + break; + default: $results[] = []; break; |