diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2024-07-02 11:21:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-02 11:21:39 +0200 |
commit | 82bf80c2d753472f003ada654e51e8a26d92027a (patch) | |
tree | 3bca100ab81e50d9e270ccbc5ac0a6d6b6f536e2 | |
parent | be138562c464aee4b0783d81d1fd693918308996 (diff) | |
parent | 11a5a6d18aa38e811588480e0339319eaface5b0 (diff) |
Merge pull request #12627 from nextcloud/fix/groupfolder-share-object-storage
Only check path for being accessible when the storage is a object home
-rw-r--r-- | lib/Share/RoomShareProvider.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Share/RoomShareProvider.php b/lib/Share/RoomShareProvider.php index 90b7d779f..c71bfe6e5 100644 --- a/lib/Share/RoomShareProvider.php +++ b/lib/Share/RoomShareProvider.php @@ -852,7 +852,7 @@ class RoomShareProvider implements IShareProvider { $pathSections = explode('/', $data['path'], 2); // FIXME: would not detect rare md5'd home storage case properly if ($pathSections[0] !== 'files' - && in_array(explode(':', $data['storage_string_id'], 2)[0], ['home', 'object'])) { + && (strpos($data['storage_string_id'], 'home::') === 0 || strpos($data['storage_string_id'], 'object::user') === 0)) { return false; } return true; |