Skip to content

Commit 6dfb01f

Browse files
authored
Merge pull request #6062 from nextcloud/fix/groupfolder-share-object-storage
Only check path for being accessible when the storage is a object home
2 parents 2a4ea73 + df5b569 commit 6dfb01f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Sharing/DeckShareProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ public function isAccessibleResult(array $data): bool {
831831
$pathSections = explode('/', $data['path'], 2);
832832
// FIXME: would not detect rare md5'd home storage case properly
833833
if ($pathSections[0] !== 'files'
834-
&& in_array(explode(':', $data['storage_string_id'], 2)[0], ['home', 'object'])) {
834+
&& (strpos($data['storage_string_id'], 'home::') === 0 || strpos($data['storage_string_id'], 'object::user') === 0)) {
835835
return false;
836836
}
837837
return true;

0 commit comments

Comments
 (0)