From ed85055d31ab90fdb64f2cadb3062cbf13d3d3d9 Mon Sep 17 00:00:00 2001
From: Bjoern Schiessle <schiessle@owncloud.com>
Date: Fri, 26 Sep 2014 13:10:31 +0200
Subject: [PATCH] for group shares we don't need a extra db entry of
 groupTarget equals itemTarget

---
 lib/private/share/share.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/private/share/share.php b/lib/private/share/share.php
index e0e9fcfd05..504230dde0 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)  {
 
-- 
GitLab