Merge pull request #24103 from nextcloud/bugfix/noid/groupfolder-share-object-storage

Only check path for being accessible when the storage is a object home
This commit is contained in:
Morris Jobke 2020-11-19 22:37:28 +01:00 committed by GitHub
commit c2510ecae9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -824,7 +824,7 @@ class DefaultShareProvider 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;