summaryrefslogtreecommitdiffstats
path: root/apps/files_encryption/lib/session.php
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-05-23 20:30:07 +0200
committerBjörn Schießle <schiessle@owncloud.com>2013-05-23 20:30:07 +0200
commita9ebf2aabe0297e2bd02a07018d6bac3b2de65c6 (patch)
treea5ace50319d4d16266e326d9662f7e3cb27ea1a1 /apps/files_encryption/lib/session.php
parentcb79169cf54bfc9d7c79422ebf118717acf9d980 (diff)
downloadnextcloud-server-a9ebf2aabe0297e2bd02a07018d6bac3b2de65c6.tar.gz
nextcloud-server-a9ebf2aabe0297e2bd02a07018d6bac3b2de65c6.zip
fix public link share if a user is logged in
Diffstat (limited to 'apps/files_encryption/lib/session.php')
-rw-r--r--apps/files_encryption/lib/session.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_encryption/lib/session.php b/apps/files_encryption/lib/session.php
index 8425cedd99f..86f56e56766 100644
--- a/apps/files_encryption/lib/session.php
+++ b/apps/files_encryption/lib/session.php
@@ -84,7 +84,9 @@ class Session
}
- if (\OCP\USER::getUser() === false) {
+ if (\OCP\USER::getUser() === false ||
+ (isset($_GET['service']) && $_GET['service'] == 'files' &&
+ isset($_GET['t']))) {
// Disable encryption proxy to prevent recursive calls
$proxyStatus = \OC_FileProxy::$enabled;
\OC_FileProxy::$enabled = false;