diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2013-01-19 01:50:02 -0500 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2013-01-19 01:50:02 -0500 |
commit | 316eef3ded233c53ccb1f40aa339372ed9c644d9 (patch) | |
tree | 1cb3da6260c90a084a008daf2660b021b743e2a7 /lib | |
parent | a17ca3a69aae0dde9aaf24f23aeffdd8658829f0 (diff) | |
download | nextcloud-server-316eef3ded233c53ccb1f40aa339372ed9c644d9.tar.gz nextcloud-server-316eef3ded233c53ccb1f40aa339372ed9c644d9.zip |
Fix sharing issue with collection and children mismatches
Diffstat (limited to 'lib')
-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 cda583aa073..920ce26700a 100644 --- a/lib/public/share.php +++ b/lib/public/share.php @@ -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 |