aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/share.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-02-04 11:52:20 -0800
committerThomas Müller <thomas.mueller@tmit.eu>2013-02-04 11:52:20 -0800
commit3b8c071df4654c1b3f999af94163f14c0cd64733 (patch)
treeb893d24051bb2633942ee6cf5064273c3d848a1e /lib/public/share.php
parenta7e62b03666dc7395ffea9c0e794ee4ab69fde97 (diff)
parent316eef3ded233c53ccb1f40aa339372ed9c644d9 (diff)
downloadnextcloud-server-3b8c071df4654c1b3f999af94163f14c0cd64733.tar.gz
nextcloud-server-3b8c071df4654c1b3f999af94163f14c0cd64733.zip
Merge pull request #1234 from owncloud/fix-issue-192
Fix sharing issue with collection and children mismatches
Diffstat (limited to 'lib/public/share.php')
-rw-r--r--lib/public/share.php3
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