Browse Source

detect object homestorage in share code

tags/v9.0beta1
Robin Appelman 8 years ago
parent
commit
e46741cf5d
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      lib/private/share/share.php

+ 3
- 1
lib/private/share/share.php 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;
}


Loading…
Cancel
Save