aboutsummaryrefslogtreecommitdiffstats
path: root/apps/sharebymail/lib
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-04-13 16:11:15 +0200
committerVincent Petry <vincent@nextcloud.com>2022-04-13 16:11:15 +0200
commit2c2b238008f82a39ac54ac651ff2a90443d8d821 (patch)
tree98985fdfbddcfafd6018b0d98eda8d70ab35f445 /apps/sharebymail/lib
parentf5c8fa4f11b70d84c593c6102f3100a94310fa34 (diff)
downloadnextcloud-server-2c2b238008f82a39ac54ac651ff2a90443d8d821.tar.gz
nextcloud-server-2c2b238008f82a39ac54ac651ff2a90443d8d821.zip
Default to permanent link passwords
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'apps/sharebymail/lib')
-rw-r--r--apps/sharebymail/lib/ShareByMailProvider.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/sharebymail/lib/ShareByMailProvider.php b/apps/sharebymail/lib/ShareByMailProvider.php
index 1e767b7f859..70af8d0c746 100644
--- a/apps/sharebymail/lib/ShareByMailProvider.php
+++ b/apps/sharebymail/lib/ShareByMailProvider.php
@@ -198,7 +198,7 @@ class ShareByMailProvider implements IShareProvider {
// Sends share password to receiver when it's a permanent one (otherwise she will have to request it via the showShare UI)
// or to owner when the password shall be given during a Talk session
- if ($this->config->getSystemValue('allow_mail_share_permanent_password') || $share->getSendPasswordByTalk()) {
+ if ($this->config->getSystemValue('allow_mail_share_permanent_password', true) || $share->getSendPasswordByTalk()) {
$send = $this->sendPassword($share, $password);
if ($passwordEnforced && $send === false) {
$this->sendPasswordToOwner($share, $password);