From 195efc12eb8c4be01d3160bcb1b8cd3d78a0767b Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Fri, 18 Mar 2016 16:34:23 +0100 Subject: Add config to sharemanager --- lib/private/Share20/Manager.php | 7 +++++++ lib/public/share/imanager.php | 7 +++++++ 2 files changed, 14 insertions(+) (limited to 'lib') diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php index 95662dc0b60..bd4b6d7cfc0 100644 --- a/lib/private/Share20/Manager.php +++ b/lib/private/Share20/Manager.php @@ -1108,6 +1108,13 @@ class Manager implements IManager { return $this->config->getAppValue('core', 'shareapi_only_share_with_group_members', 'no') === 'yes'; } + /** + * Check if users can share with groups + * @return bool + */ + public function allowGroupSharing() { + return $this->config->getAppValue('core', 'shareapi_allow_group_sharing', 'yes') === 'yes'; + } /** * Copied from \OC_Util::isSharingDisabledForUser diff --git a/lib/public/share/imanager.php b/lib/public/share/imanager.php index 86a31e1f06d..64e5b554de9 100644 --- a/lib/public/share/imanager.php +++ b/lib/public/share/imanager.php @@ -221,6 +221,13 @@ interface IManager { */ public function shareWithGroupMembersOnly(); + /** + * Check if users can share with groups + * @return bool + * @since 9.0.1 + */ + public function allowGroupSharing(); + /** * Check if sharing is disabled for the given user * -- cgit v1.2.3