diff options
author | Louis Chemineau <louis@chmn.me> | 2022-04-19 12:54:28 +0200 |
---|---|---|
committer | Louis Chemineau <louis@chmn.me> | 2022-04-19 16:23:08 +0200 |
commit | e8ab298d2c718c0b6e671c127ffa51d840654cda (patch) | |
tree | 87cd45ef68b640cd5e5555aa6a9b6b99ebdab7ae /lib | |
parent | 70c56b411ee3eb20ebc206aa5cbf04254343f03f (diff) | |
download | nextcloud-server-e8ab298d2c718c0b6e671c127ffa51d840654cda.tar.gz nextcloud-server-e8ab298d2c718c0b6e671c127ffa51d840654cda.zip |
Use email settings in DAV search
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Share20/Manager.php | 4 | ||||
-rw-r--r-- | lib/public/Share/IManager.php | 10 |
2 files changed, 13 insertions, 1 deletions
diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php index 2a864bd62c7..eed86bb41c3 100644 --- a/lib/private/Share20/Manager.php +++ b/lib/private/Share20/Manager.php @@ -1963,6 +1963,10 @@ class Manager implements IManager { return $this->config->getAppValue('core', 'shareapi_restrict_user_enumeration_full_match', 'yes') === 'yes'; } + public function matchEmail(): bool { + return $this->config->getAppValue('core', 'shareapi_restrict_user_enumeration_full_match_email', 'yes') === 'yes'; + } + public function ignoreSecondDisplayName(): bool { return $this->config->getAppValue('core', 'shareapi_restrict_user_enumeration_full_match_ignore_second_display_name', 'no') === 'yes'; } diff --git a/lib/public/Share/IManager.php b/lib/public/Share/IManager.php index 2963d8fd24b..f207ca87a2c 100644 --- a/lib/public/Share/IManager.php +++ b/lib/public/Share/IManager.php @@ -455,10 +455,18 @@ interface IManager { public function allowEnumerationFullMatch(): bool; /** + * Check if the search should match the email + * + * @return bool + * @since 25.0.0 + */ + public function matchEmail(): bool; + + /** * Check if the search should ignore the second in parentheses display name if there is any * * @return bool - * @since 24.0.0 + * @since 25.0.0 */ public function ignoreSecondDisplayName(): bool; |