diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2019-11-13 15:22:27 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-11-27 14:33:13 +0100 |
commit | 8797ff70eb40871110c7ccd9f0d73c7fabda553a (patch) | |
tree | c575f7328a9ce7bb94df38c2e5c4e7d17984e4b0 /apps | |
parent | 444c9b6744f00a0fb8ac31cf0c827c150719bc68 (diff) | |
download | nextcloud-server-8797ff70eb40871110c7ccd9f0d73c7fabda553a.tar.gz nextcloud-server-8797ff70eb40871110c7ccd9f0d73c7fabda553a.zip |
Add capabilities
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/lib/Capabilities.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/Capabilities.php b/apps/files_sharing/lib/Capabilities.php index 6a16da0231c..26062ef51bc 100644 --- a/apps/files_sharing/lib/Capabilities.php +++ b/apps/files_sharing/lib/Capabilities.php @@ -77,6 +77,13 @@ class Capabilities implements ICapability { $public['expire_date']['enforced'] = $this->config->getAppValue('core', 'shareapi_enforce_expire_date', 'no') === 'yes'; } + $public['expire_date_internal'] = []; + $public['expire_date_internal']['enabled'] = $this->config->getAppValue('core', 'shareapi_default_internal_expire_date', 'no') === 'yes'; + if ($public['expire_date_internal']['enabled']) { + $public['expire_date_internal']['days'] = $this->config->getAppValue('core', 'shareapi_internal_expire_after_n_days', '7'); + $public['expire_date_internal']['enforced'] = $this->config->getAppValue('core', 'shareapi_enforce_internal_expire_date', 'no') === 'yes'; + } + $public['send_mail'] = $this->config->getAppValue('core', 'shareapi_allow_public_notification', 'no') === 'yes'; $public['upload'] = $this->config->getAppValue('core', 'shareapi_allow_public_upload', 'yes') === 'yes'; $public['upload_files_drop'] = $public['upload']; |