summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2013-02-10 19:09:58 -0500
committerMichael Gapczynski <mtgap@owncloud.com>2013-02-10 19:09:58 -0500
commit8e3b8c7f47ab12e1612d3fa025e6b9eb7f5ffdb3 (patch)
tree33c270d8946a00c41b00e80ae4c233d11a849255 /apps/files_sharing/lib
parentc6985d6cd4da69715773b3d4eb65cf17977c8cc4 (diff)
downloadnextcloud-server-8e3b8c7f47ab12e1612d3fa025e6b9eb7f5ffdb3.tar.gz
nextcloud-server-8e3b8c7f47ab12e1612d3fa025e6b9eb7f5ffdb3.zip
Proper fix for shared links
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r--apps/files_sharing/lib/sharedstorage.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/sharedstorage.php b/apps/files_sharing/lib/sharedstorage.php
index ea28ca69b93..65812b7e2fd 100644
--- a/apps/files_sharing/lib/sharedstorage.php
+++ b/apps/files_sharing/lib/sharedstorage.php
@@ -390,7 +390,7 @@ class Shared extends \OC\Files\Storage\Common {
}
public static function setup($options) {
- if (\OCP\Share::getItemsSharedWith('file')) {
+ if (!\OCP\User::isLoggedIn() || \OCP\User::getUser() != $options['user'] || \OCP\Share::getItemsSharedWith('file')) {
$user_dir = $options['user_dir'];
\OC\Files\Filesystem::mount('\OC\Files\Storage\Shared', array('sharedFolder' => '/Shared'), $user_dir.'/Shared/');
}