diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-04-04 16:54:02 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-04-23 12:54:24 +0200 |
commit | c377893f0e81dbefe8612fecd90434e47573be29 (patch) | |
tree | 6541f5dd4c8fd497ad845a0fb2c5640b470ac380 /apps | |
parent | a27db9e4cadb9b5ee26f7b17d3a5997b07639489 (diff) | |
download | nextcloud-server-c377893f0e81dbefe8612fecd90434e47573be29.tar.gz nextcloud-server-c377893f0e81dbefe8612fecd90434e47573be29.zip |
make sure that we have the right permissions for the mount points
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/lib/permissions.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/permissions.php b/apps/files_sharing/lib/permissions.php index 31b7ac361ae..c3ad63e2fd2 100644 --- a/apps/files_sharing/lib/permissions.php +++ b/apps/files_sharing/lib/permissions.php @@ -31,7 +31,9 @@ class Shared_Permissions extends Permissions { */ public function get($fileId, $user) { if ($fileId == -1) { - return \OCP\PERMISSION_READ; + // if we ask for the mount point return -1 so that we can get the correct + // permissions by the path, with the root fileId we have no idea which share is meant + return -1; } $source = \OCP\Share::getItemSharedWithBySource('file', $fileId, \OC_Share_Backend_File::FORMAT_SHARED_STORAGE, null, true); |