From 8797ff70eb40871110c7ccd9f0d73c7fabda553a Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma <roeland@famdouma.nl> Date: Wed, 13 Nov 2019 15:22:27 +0100 Subject: [PATCH] Add capabilities Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl> --- apps/files_sharing/lib/Capabilities.php | 7 +++++++ 1 file changed, 7 insertions(+) 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']; -- GitLab