summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2016-03-18 16:34:23 +0100
committerRoeland Jago Douma <rullzer@owncloud.com>2016-03-22 17:13:34 +0100
commit195efc12eb8c4be01d3160bcb1b8cd3d78a0767b (patch)
tree94aa6196d90716b722912c5d913ac1c294e27605 /lib
parent35024beb9c6b37db260d3994c73f2f432230932b (diff)
downloadnextcloud-server-195efc12eb8c4be01d3160bcb1b8cd3d78a0767b.tar.gz
nextcloud-server-195efc12eb8c4be01d3160bcb1b8cd3d78a0767b.zip
Add config to sharemanager
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Share20/Manager.php7
-rw-r--r--lib/public/share/imanager.php7
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