diff --git a/lib/private/share/share.php b/lib/private/share/share.php index c98373455d3cbfbc713d4ad0f7ec26408faa6d5e..6b903c003d35612f04182641bc87767a050efe6f 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`)'