Skip to content

Commit 11a5a6d

Browse files
committed
fix(sharing): Only check path for being accessible when the storage is a object home
Forward-ported nextcloud/server#24103 Signed-off-by: Jonas <jonas@freesources.org> Signed-off-by: Jonas <jonas@freesources.org>
1 parent a79d7bd commit 11a5a6d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Share/RoomShareProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,7 @@ private function isAccessibleResult(array $data): bool {
886886
$pathSections = explode('/', $data['path'], 2);
887887
// FIXME: would not detect rare md5'd home storage case properly
888888
if ($pathSections[0] !== 'files'
889-
&& in_array(explode(':', $data['storage_string_id'], 2)[0], ['home', 'object'])) {
889+
&& (strpos($data['storage_string_id'], 'home::') === 0 || strpos($data['storage_string_id'], 'object::user') === 0)) {
890890
return false;
891891
}
892892
return true;

0 commit comments

Comments
 (0)