From 07d43df71382d95839dd4335338d34fd6827b6b1 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Thu, 18 Sep 2014 14:46:11 +0200 Subject: [PATCH] only add a new row if it isn't a unique share, otherwise update the existing row --- lib/private/share/share.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/share/share.php b/lib/private/share/share.php index c98373455d..6b903c003d 100644 --- a/lib/private/share/share.php +++ b/lib/private/share/share.php @@ -775,7 +775,7 @@ class Share extends \OC\Share\Constants { } } - if (!$itemUnshared && isset($groupShare)) { + if (!$itemUnshared && isset($groupShare) && !isset($uniqueGroupShare)) { $query = \OC_DB::prepare('INSERT INTO `*PREFIX*share`' .' (`item_type`, `item_source`, `item_target`, `parent`, `share_type`,' .' `share_with`, `uid_owner`, `permissions`, `stime`, `file_source`, `file_target`)'