summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-10-29 21:10:50 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2019-11-27 14:33:13 +0100
commit0c0ca45d5080085db4ed380b47c1dbbbf94f6119 (patch)
tree6e0398fa9653416d2fdffc85791238cc59878a4d /lib
parent96eedc5eb2768db51361f556c3a65c5e94202d65 (diff)
downloadnextcloud-server-0c0ca45d5080085db4ed380b47c1dbbbf94f6119.tar.gz
nextcloud-server-0c0ca45d5080085db4ed380b47c1dbbbf94f6119.zip
Actualy return data
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Share20/Manager.php9
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php
index 3a9176e9eb3..db9c704871d 100644
--- a/lib/private/Share20/Manager.php
+++ b/lib/private/Share20/Manager.php
@@ -1699,8 +1699,6 @@ class Manager implements IManager {
* @return bool
*/
public function shareApiInternalDefaultExpireDate(): bool {
- //FIXME: mage configurable
- return true;
return $this->config->getAppValue('core', 'shareapi_default_internal_expire_date', 'no') === 'yes';
}
@@ -1710,9 +1708,7 @@ class Manager implements IManager {
* @return bool
*/
public function shareApiInternalDefaultExpireDateEnforced(): bool {
- //FIXME: mage configurable
- return true;
- return $this->shareApiLinkDefaultExpireDate() &&
+ return $this->shareApiInternalDefaultExpireDate() &&
$this->config->getAppValue('core', 'shareapi_enforce_internal_expire_date', 'no') === 'yes';
}
@@ -1722,9 +1718,6 @@ class Manager implements IManager {
* @return int
*/
public function shareApiInternalDefaultExpireDays(): int {
-
- //FIXME: mage configurable
- return 6;
return (int)$this->config->getAppValue('core', 'shareapi_internal_expire_after_n_days', '7');
}