add capabilities for multiple share links

Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
This commit is contained in:
Bjoern Schiessle 2018-11-26 14:44:59 +01:00
parent 68ad2ae118
commit 1518671ad8
No known key found for this signature in database
GPG Key ID: 2378A753E2BF04F6
1 changed files with 1 additions and 0 deletions

View File

@ -63,6 +63,7 @@ class Capabilities implements ICapability {
$public['password']['enforced'] = ($this->config->getAppValue('core', 'shareapi_enforce_links_password', 'no') === 'yes');
$public['expire_date'] = [];
$public['multiple_links'] = true;
$public['expire_date']['enabled'] = $this->config->getAppValue('core', 'shareapi_default_expire_date', 'no') === 'yes';
if ($public['expire_date']['enabled']) {
$public['expire_date']['days'] = $this->config->getAppValue('core', 'shareapi_expire_after_n_days', '7');