aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Share20
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2022-04-13 15:07:27 +0200
committerLouis Chemineau <louis@chmn.me>2022-04-19 12:51:57 +0200
commit70c56b411ee3eb20ebc206aa5cbf04254343f03f (patch)
tree25875fd62ab414a1a81c45cabb66ef479b76b725 /lib/private/Share20
parent13dbad0080f31a5ae816779685070e8f94235d5a (diff)
downloadnextcloud-server-70c56b411ee3eb20ebc206aa5cbf04254343f03f.tar.gz
nextcloud-server-70c56b411ee3eb20ebc206aa5cbf04254343f03f.zip
Use share setting in DAV search
shareapi_restrict_user_enumeration_full_match_ignore_second_display_name was introduced to ignore second display name during search from the share panel. But this setting was not respected by search from the calendar application. This fix it. Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'lib/private/Share20')
-rw-r--r--lib/private/Share20/Manager.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php
index aab69eae597..2a864bd62c7 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 ignoreSecondDisplayName(): bool {
+ return $this->config->getAppValue('core', 'shareapi_restrict_user_enumeration_full_match_ignore_second_display_name', 'no') === 'yes';
+ }
+
public function currentUserCanEnumerateTargetUser(?IUser $currentUser, IUser $targetUser): bool {
if ($this->allowEnumerationFullMatch()) {
return true;