From 5b53b6f977497c359385ce6b324dfc2c2a68dc90 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 10 Mar 2021 17:18:44 +0100 Subject: Add a setting to restrict returning a full match unless in phonebook or same group Signed-off-by: Joas Schilling --- lib/private/Share20/Manager.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/private/Share20') diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php index 6e072740884..ce1ec1d60f6 100644 --- a/lib/private/Share20/Manager.php +++ b/lib/private/Share20/Manager.php @@ -1834,6 +1834,10 @@ class Manager implements IManager { $this->config->getAppValue('core', 'shareapi_restrict_user_enumeration_to_phone', 'no') === 'yes'; } + public function allowEnumerationFullMatch(): bool { + return $this->config->getAppValue('core', 'shareapi_restrict_user_enumeration_full_match', 'yes') === 'yes'; + } + /** * Copied from \OC_Util::isSharingDisabledForUser * -- cgit v1.2.3