diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2016-03-18 16:34:23 +0100 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2016-03-22 17:13:34 +0100 |
commit | 195efc12eb8c4be01d3160bcb1b8cd3d78a0767b (patch) | |
tree | 94aa6196d90716b722912c5d913ac1c294e27605 /lib | |
parent | 35024beb9c6b37db260d3994c73f2f432230932b (diff) | |
download | nextcloud-server-195efc12eb8c4be01d3160bcb1b8cd3d78a0767b.tar.gz nextcloud-server-195efc12eb8c4be01d3160bcb1b8cd3d78a0767b.zip |
Add config to sharemanager
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Share20/Manager.php | 7 | ||||
-rw-r--r-- | lib/public/share/imanager.php | 7 |
2 files changed, 14 insertions, 0 deletions
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 @@ -222,6 +222,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 * * @param string $userId |