diff options
author | Louis Chemineau <louis@chmn.me> | 2022-04-19 13:54:28 +0300 |
---|---|---|
committer | Louis Chemineau <louis@chmn.me> | 2022-05-12 16:05:10 +0300 |
commit | 11bd644251c65a7112c208ff81e7ce61a44a49b0 (patch) | |
tree | 301f643ddd64df5d442ab4b27af3d3129795c0a5 /apps/dav/lib/Connector/Sabre | |
parent | 55fda0b769db0b5f692686f6959d31954bb423c5 (diff) |
Use email settings in DAV search
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'apps/dav/lib/Connector/Sabre')
-rw-r--r-- | apps/dav/lib/Connector/Sabre/Principal.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/dav/lib/Connector/Sabre/Principal.php b/apps/dav/lib/Connector/Sabre/Principal.php index 4c7f17f4929..94e3978e67d 100644 --- a/apps/dav/lib/Connector/Sabre/Principal.php +++ b/apps/dav/lib/Connector/Sabre/Principal.php @@ -271,6 +271,7 @@ class Principal implements BackendInterface { $limitEnumerationPhone = $this->shareManager->limitEnumerationToPhone(); $allowEnumerationFullMatch = $this->shareManager->allowEnumerationFullMatch(); $ignoreSecondDisplayName = $this->shareManager->ignoreSecondDisplayName(); + $matchEmail = $this->shareManager->matchEmail(); // If sharing is restricted to group members only, // return only members that have groups in common @@ -299,7 +300,7 @@ class Principal implements BackendInterface { switch ($prop) { case '{http://sabredav.org/ns}email-address': if (!$allowEnumeration) { - if ($allowEnumerationFullMatch) { + if ($allowEnumerationFullMatch && $matchEmail) { $users = $this->userManager->getByEmail($value); } else { $users = []; |