diff options
author | Joas Schilling <coding@schilljs.com> | 2021-03-10 17:18:44 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-03-10 17:25:57 +0100 |
commit | 5b53b6f977497c359385ce6b324dfc2c2a68dc90 (patch) | |
tree | 2fa5ce189b68b585727761df952f362a17c17fd6 /lib/private/Share20/Manager.php | |
parent | 177ae33ba1023dcc2a9c1bfce0e2b551ed7b746d (diff) | |
download | nextcloud-server-5b53b6f977497c359385ce6b324dfc2c2a68dc90.tar.gz nextcloud-server-5b53b6f977497c359385ce6b324dfc2c2a68dc90.zip |
Add a setting to restrict returning a full match unless in phonebook or same group
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Share20/Manager.php')
-rw-r--r-- | lib/private/Share20/Manager.php | 4 |
1 files changed, 4 insertions, 0 deletions
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 * |