diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2017-12-01 11:35:01 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-02-27 12:29:25 +0100 |
commit | 1615312bf1044dcbd98c7e4739467314ada618cf (patch) | |
tree | 9788f5cb7fe746078953cafadf78e3b2e845d52b /apps/files_sharing/lib/Capabilities.php | |
parent | 7d0102bf7302a483209e0d1c926260713f0e56c6 (diff) | |
download | nextcloud-server-1615312bf1044dcbd98c7e4739467314ada618cf.tar.gz nextcloud-server-1615312bf1044dcbd98c7e4739467314ada618cf.zip |
add share permissions to settings page
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'apps/files_sharing/lib/Capabilities.php')
-rw-r--r-- | apps/files_sharing/lib/Capabilities.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/Capabilities.php b/apps/files_sharing/lib/Capabilities.php index af41add250c..ce10c8df8a1 100644 --- a/apps/files_sharing/lib/Capabilities.php +++ b/apps/files_sharing/lib/Capabilities.php @@ -23,6 +23,7 @@ namespace OCA\Files_Sharing; use OCP\Capabilities\ICapability; +use OCP\Constants; use \OCP\IConfig; /** @@ -86,6 +87,7 @@ class Capabilities implements ICapability { $res['group'] = []; $res['group']['enabled'] = $this->config->getAppValue('core', 'shareapi_allow_group_sharing', 'yes') === 'yes'; $res['group']['expire_date']['enabled'] = true; + $res['default_permissions'] = (int)$this->config->getAppValue('core', 'shareapi_default_permissions', Constants::PERMISSION_ALL); } //Federated sharing |