Merge pull request #6063 from nextcloud/backport/6062/stable28

[stable28] Only check path for being accessible when the storage is a object home
This commit is contained in:
Jonas
2024-07-02 11:06:46 +02:00
committed by GitHub

View File

@@ -847,7 +847,7 @@ class DeckShareProvider implements \OCP\Share\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;