Add config to sharemanager

This commit is contained in:
Roeland Jago Douma 2016-03-18 16:34:23 +01:00
parent 35024beb9c
commit 195efc12eb
2 changed files with 14 additions and 0 deletions

View File

@ -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

View File

@ -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
*