aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/share
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-10-12 17:34:51 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-10-16 21:41:51 +0200
commite46741cf5d222088cc20256462a6d93f85ac27c5 (patch)
tree49aebdd1f60e087a6bc8afefc6deed0728255b7b /lib/private/share
parente7f75484f87df41be5ef8dedce670bd2ccd12dc2 (diff)
downloadnextcloud-server-e46741cf5d222088cc20256462a6d93f85ac27c5.tar.gz
nextcloud-server-e46741cf5d222088cc20256462a6d93f85ac27c5.zip
detect object homestorage in share code
Diffstat (limited to 'lib/private/share')
-rw-r--r--lib/private/share/share.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/share/share.php b/lib/private/share/share.php
index f2ba33bd16b..b015d7738b5 100644
--- a/lib/private/share/share.php
+++ b/lib/private/share/share.php
@@ -2636,7 +2636,9 @@ class Share extends Constants {
*/
private static function isFileReachable($path, $ownerStorageId) {
// if outside the home storage, file is always considered reachable
- if (!(substr($ownerStorageId, 0, 6) === 'home::')) {
+ if (!(substr($ownerStorageId, 0, 6) === 'home::' ||
+ substr($ownerStorageId, 0, 13) === 'object::user:'
+ )) {
return true;
}