]> source.dussan.org Git - nextcloud-server.git/commitdiff
make sure to enable incognito mode when mounting a public link and update init status...
authorBjoern Schiessle <schiessle@owncloud.com>
Tue, 20 May 2014 15:54:14 +0000 (17:54 +0200)
committerBjoern Schiessle <schiessle@owncloud.com>
Sat, 14 Jun 2014 08:14:07 +0000 (10:14 +0200)
apps/files_encryption/lib/session.php
apps/files_sharing/lib/connector/publicauth.php

index 93be6691f96bbc0d0e6db2db632f7b8a1357782a..ef18b924dd8175c8279da7074a41f3ab3186a12d 100644 (file)
@@ -100,6 +100,8 @@ class Session {
                        $privateKey = Crypt::decryptPrivateKey($encryptedKey, '');
                        $this->setPublicSharePrivateKey($privateKey);
 
+                       $this->setInitialized(\OCA\Encryption\Session::INIT_SUCCESSFUL);
+
                        \OC_FileProxy::$enabled = $proxyStatus;
                }
        }
index ec7b68ba69ce2eddebbd6c5afcad0b30cf388540..c9d545180b31c239501d377c9eba0c51370ab18c 100644 (file)
@@ -38,6 +38,7 @@ class PublicAuth extends \Sabre\DAV\Auth\Backend\AbstractBasic {
         */
        protected function validateUserPass($username, $password) {
                $linkItem = \OCP\Share::getShareByToken($username, false);
+               \OC_User::setIncognitoMode(true);
                $this->share = $linkItem;
                if (!$linkItem) {
                        return false;