summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/capabilities.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-08-13 12:46:52 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2015-08-13 12:46:52 +0200
commit70504920e78e58990c02bd51e6acdcd68bf659a7 (patch)
tree59e721a2057fd2364929272d8d312055e93d444c /apps/files_sharing/lib/capabilities.php
parent55dc74bba48704cc2478530300aece9396b7b191 (diff)
downloadnextcloud-server-70504920e78e58990c02bd51e6acdcd68bf659a7.tar.gz
nextcloud-server-70504920e78e58990c02bd51e6acdcd68bf659a7.zip
Fix default values of sharing capabilities
The problem is the UI used a different default than the capabilities. So when you never touched the config, the setting in admins said "disabled" while the capabilities said "enabled".
Diffstat (limited to 'apps/files_sharing/lib/capabilities.php')
-rw-r--r--apps/files_sharing/lib/capabilities.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/files_sharing/lib/capabilities.php b/apps/files_sharing/lib/capabilities.php
index ef69a40078b..0338dfe96e2 100644
--- a/apps/files_sharing/lib/capabilities.php
+++ b/apps/files_sharing/lib/capabilities.php
@@ -49,20 +49,20 @@ class Capabilities implements ICapability {
$public['enabled'] = $this->config->getAppValue('core', 'shareapi_allow_links', 'yes') === 'yes';
if ($public['enabled']) {
$public['password'] = [];
- $public['password']['enforced'] = ($this->config->getAppValue('core', 'shareapi_enforce_links_password', 'yes') === 'yes');
+ $public['password']['enforced'] = ($this->config->getAppValue('core', 'shareapi_enforce_links_password', 'no') === 'yes');
$public['expire_date'] = [];
- $public['expire_date']['enabled'] = $this->config->getAppValue('core', 'shareapi_default_expire_date', 'yes') === 'yes';
+ $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');
- $public['expire_date']['enforced'] = $this->config->getAppValue('core', 'shareapi_enforce_expire_date', 'yes') === 'yes';
+ $public['expire_date']['enforced'] = $this->config->getAppValue('core', 'shareapi_enforce_expire_date', 'no') === 'yes';
}
- $public['send_mail'] = $this->config->getAppValue('core', 'shareapi_allow_public_notification', 'yes') === 'yes';
+ $public['send_mail'] = $this->config->getAppValue('core', 'shareapi_allow_public_notification', 'no') === 'yes';
}
$res["public"] = $public;
- $res['user']['send_mail'] = $this->config->getAppValue('core', 'shareapi_allow_mail_notification', 'yes') === 'yes';
+ $res['user']['send_mail'] = $this->config->getAppValue('core', 'shareapi_allow_mail_notification', 'no') === 'yes';
$res['resharing'] = $this->config->getAppValue('core', 'shareapi_allow_resharing', 'yes') === 'yes';