summaryrefslogtreecommitdiffstats
path: root/lib/public/Share
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/public/Share
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/public/Share')
-rw-r--r--lib/public/Share/IManager.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/public/Share/IManager.php b/lib/public/Share/IManager.php
index b6354be3978..820835365d9 100644
--- a/lib/public/Share/IManager.php
+++ b/lib/public/Share/IManager.php
@@ -369,6 +369,22 @@ interface IManager {
public function allowGroupSharing();
/**
+ * Check if user enumeration is allowed
+ *
+ * @return bool
+ * @since 19.0.0
+ */
+ public function allowEnumeration(): bool;
+
+ /**
+ * Check if user enumeration is limited to the users groups
+ *
+ * @return bool
+ * @since 19.0.0
+ */
+ public function limitEnumerationToGroups(): bool;
+
+ /**
* Check if sharing is disabled for the given user
*
* @param string $userId