mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Fix sharing issue with collection and children mismatches
This commit is contained in:
parent
a17ca3a69a
commit
316eef3ded
1 changed files with 2 additions and 1 deletions
|
|
@ -681,7 +681,8 @@ class Share {
|
|||
$collectionTypes[] = $type;
|
||||
}
|
||||
}
|
||||
if (!self::getBackend($itemType) instanceof Share_Backend_Collection) {
|
||||
// TODO Add option for collections to be collection of themselves, only 'folder' does it now...
|
||||
if (!self::getBackend($itemType) instanceof Share_Backend_Collection || $itemType != 'folder') {
|
||||
unset($collectionTypes[0]);
|
||||
}
|
||||
// Return array if collections were found or the item type is a collection itself
|
||||
|
|
|
|||
Loading…
Reference in a new issue