From 2c2b238008f82a39ac54ac651ff2a90443d8d821 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Wed, 13 Apr 2022 16:11:15 +0200 Subject: [PATCH] Default to permanent link passwords Signed-off-by: Vincent Petry --- apps/sharebymail/lib/ShareByMailProvider.php | 2 +- lib/private/Share20/Manager.php | 2 +- 2 files changed, 2 insertions(+), 2 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); diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php index a5d876e8015..191b59d2b88 100644 --- a/lib/private/Share20/Manager.php +++ b/lib/private/Share20/Manager.php @@ -1175,7 +1175,7 @@ class Manager implements IManager { * Set the share's password expiration time */ private function setSharePasswordExpirationTime(IShare $share): void { - if ($this->config->getSystemValue('allow_mail_share_permanent_password')) { + if ($this->config->getSystemValue('allow_mail_share_permanent_password', true)) { // Sets password expiration date to NULL $share->setPasswordExpirationTime(); return; -- 2.39.5