detect object homestorage in share code

This commit is contained in:
Robin Appelman 2015-10-12 17:34:51 +02:00 committed by Thomas Müller
parent e7f75484f8
commit e46741cf5d
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}