summaryrefslogtreecommitdiffstats
path: root/apps/sharebymail
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-04-13 18:20:58 +0200
committerGitHub <noreply@github.com>2022-04-13 18:20:58 +0200
commit964bc57eed6cb943aa19468ec679549496453ec9 (patch)
tree98985fdfbddcfafd6018b0d98eda8d70ab35f445 /apps/sharebymail
parentcd95fce105fe5f0e71b1bcac7685464f936b9749 (diff)
parent2c2b238008f82a39ac54ac651ff2a90443d8d821 (diff)
downloadnextcloud-server-964bc57eed6cb943aa19468ec679549496453ec9.tar.gz
nextcloud-server-964bc57eed6cb943aa19468ec679549496453ec9.zip
Merge pull request #31965 from nextcloud/bugfix/31951/fix-share-by-mail-expiration-reset
Properly reset pw expiration
Diffstat (limited to 'apps/sharebymail')
-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);