Add config to sharemanager
This commit is contained in:
parent
35024beb9c
commit
195efc12eb
|
@ -1108,6 +1108,13 @@ class Manager implements IManager {
|
||||||
return $this->config->getAppValue('core', 'shareapi_only_share_with_group_members', 'no') === 'yes';
|
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
|
* Copied from \OC_Util::isSharingDisabledForUser
|
||||||
|
|
|
@ -221,6 +221,13 @@ interface IManager {
|
||||||
*/
|
*/
|
||||||
public function shareWithGroupMembersOnly();
|
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
|
* Check if sharing is disabled for the given user
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue