diff options
Diffstat (limited to 'lib/public/share.php')
-rw-r--r-- | lib/public/share.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/public/share.php b/lib/public/share.php index 3c5c2d53782..7d806fafd04 100644 --- a/lib/public/share.php +++ b/lib/public/share.php @@ -516,7 +516,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 - collections can be inside collections |