summaryrefslogtreecommitdiffstats
path: root/lib/private/Share20
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-02-20 18:51:35 +0100
committerJulius Härtl <jus@bitgrid.net>2020-03-20 10:43:56 +0100
commit8edc824526570fcfbd0b5f48606015ba0ae2b81b (patch)
treedaf2a869737de8b9d326406b28bc102c29e551ea /lib/private/Share20
parent49e7576ae0e7403cb266a3f78ef4f0208483eb07 (diff)
downloadnextcloud-server-8edc824526570fcfbd0b5f48606015ba0ae2b81b.tar.gz
nextcloud-server-8edc824526570fcfbd0b5f48606015ba0ae2b81b.zip
Expose enumeration config though share manager
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/Share20')
-rw-r--r--lib/private/Share20/Manager.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php
index 82e948344c1..9023e14fd2c 100644
--- a/lib/private/Share20/Manager.php
+++ b/lib/private/Share20/Manager.php
@@ -1764,6 +1764,15 @@ class Manager implements IManager {
return $this->config->getAppValue('core', 'shareapi_allow_group_sharing', 'yes') === 'yes';
}
+ public function allowEnumeration(): bool {
+ return $this->config->getAppValue('core', 'shareapi_allow_share_dialog_user_enumeration', 'yes') === 'yes';
+ }
+
+ public function limitEnumerationToGroups(): bool {
+ return $this->allowEnumeration() &&
+ $this->config->getAppValue('core', 'shareapi_restrict_user_enumeration_to_group', 'no') === 'yes';
+ }
+
/**
* Copied from \OC_Util::isSharingDisabledForUser
*