Merge pull request #12668 from nextcloud/add-capabilities
add capabilities for multiple share links
This commit is contained in:
commit
5b649df4f3
|
@ -63,6 +63,7 @@ class Capabilities implements ICapability {
|
||||||
$public['password']['enforced'] = ($this->config->getAppValue('core', 'shareapi_enforce_links_password', 'no') === 'yes');
|
$public['password']['enforced'] = ($this->config->getAppValue('core', 'shareapi_enforce_links_password', 'no') === 'yes');
|
||||||
|
|
||||||
$public['expire_date'] = [];
|
$public['expire_date'] = [];
|
||||||
|
$public['multiple_links'] = true;
|
||||||
$public['expire_date']['enabled'] = $this->config->getAppValue('core', 'shareapi_default_expire_date', 'no') === 'yes';
|
$public['expire_date']['enabled'] = $this->config->getAppValue('core', 'shareapi_default_expire_date', 'no') === 'yes';
|
||||||
if ($public['expire_date']['enabled']) {
|
if ($public['expire_date']['enabled']) {
|
||||||
$public['expire_date']['days'] = $this->config->getAppValue('core', 'shareapi_expire_after_n_days', '7');
|
$public['expire_date']['days'] = $this->config->getAppValue('core', 'shareapi_expire_after_n_days', '7');
|
||||||
|
|
Loading…
Reference in New Issue