Skip to content

Commit

Permalink
Merge pull request #24103 from nextcloud/bugfix/noid/groupfolder-shar…
Browse files Browse the repository at this point in the history
…e-object-storage

Only check path for being accessible when the storage is a object home
  • Loading branch information
MorrisJobke authored Nov 19, 2020
2 parents 650ffc5 + d665981 commit c2510ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Share20/DefaultShareProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ private function isAccessibleResult($data) {
$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;
Expand Down

0 comments on commit c2510ec

Please sign in to comment.