summaryrefslogtreecommitdiffstats
path: root/lib/private/share
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-09-26 13:10:31 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2014-09-26 13:10:31 +0200
commited85055d31ab90fdb64f2cadb3062cbf13d3d3d9 (patch)
treed41f2252a4e11e2c3f9e9cdb9fe5cebf63459a5b /lib/private/share
parentd242e518f93c5588462486920fc22ee8db1802f3 (diff)
downloadnextcloud-server-ed85055d31ab90fdb64f2cadb3062cbf13d3d3d9.tar.gz
nextcloud-server-ed85055d31ab90fdb64f2cadb3062cbf13d3d3d9.zip
for group shares we don't need a extra db entry of groupTarget equals itemTarget
Diffstat (limited to 'lib/private/share')
-rw-r--r--lib/private/share/share.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/share/share.php b/lib/private/share/share.php
index e0e9fcfd05f..504230dde04 100644
--- a/lib/private/share/share.php
+++ b/lib/private/share/share.php
@@ -1664,9 +1664,9 @@ class Share extends \OC\Share\Constants {
$itemTarget = $sourceExists['item_target'];
// for group shares we don't need a additional entry if the target is the same
- //if($isGroupShare && $groupItemTarget === $itemTarget) {
- // continue;
- //}
+ if($isGroupShare && $groupItemTarget === $itemTarget) {
+ continue;
+ }
} elseif(!$sourceExists && !$isGroupShare) {