Add config to sharemanager

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

View File

@ -1111,6 +1111,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

@ -220,6 +220,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
*