detect object homestorage in share code
This commit is contained in:
parent
e7f75484f8
commit
e46741cf5d
|
@ -2636,7 +2636,9 @@ class Share extends Constants {
|
||||||
*/
|
*/
|
||||||
private static function isFileReachable($path, $ownerStorageId) {
|
private static function isFileReachable($path, $ownerStorageId) {
|
||||||
// if outside the home storage, file is always considered reachable
|
// 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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue