Skip to content

Commit c2510ec

Browse files
authored
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
2 parents 650ffc5 + d665981 commit c2510ec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/private/Share20/DefaultShareProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ private function isAccessibleResult($data) {
824824
$pathSections = explode('/', $data['path'], 2);
825825
// FIXME: would not detect rare md5'd home storage case properly
826826
if ($pathSections[0] !== 'files'
827-
&& in_array(explode(':', $data['storage_string_id'], 2)[0], ['home', 'object'])) {
827+
&& (strpos($data['storage_string_id'], 'home::') === 0 || strpos($data['storage_string_id'], 'object::user') === 0)) {
828828
return false;
829829
}
830830
return true;

0 commit comments

Comments
 (0)