]> source.dussan.org Git - nextcloud-server.git/commitdiff
Default to permanent link passwords 31965/head
authorVincent Petry <vincent@nextcloud.com>
Wed, 13 Apr 2022 14:11:15 +0000 (16:11 +0200)
committerVincent Petry <vincent@nextcloud.com>
Wed, 13 Apr 2022 14:11:15 +0000 (16:11 +0200)
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
apps/sharebymail/lib/ShareByMailProvider.php
lib/private/Share20/Manager.php

index 1e767b7f8596a44b5268ad84c56c09874b9780de..70af8d0c746a10bae39858efd25d3263bcc050ff 100644 (file)
@@ -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);
index a5d876e8015902aa029d0b523c9d5713afca569f..191b59d2b8887bb948c53462c4ad9b268445fc64 100644 (file)
@@ -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;