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/private/Share20/Manager.php | |
parent | 35024beb9c6b37db260d3994c73f2f432230932b (diff) | |
download | nextcloud-server-195efc12eb8c4be01d3160bcb1b8cd3d78a0767b.tar.gz nextcloud-server-195efc12eb8c4be01d3160bcb1b8cd3d78a0767b.zip |
Add config to sharemanager
Diffstat (limited to 'lib/private/Share20/Manager.php')
-rw-r--r-- | lib/private/Share20/Manager.php | 7 |
1 files changed, 7 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 |