only add a new row if it isn't a unique share, otherwise update the existing row

remotes/origin/fix-10825
Bjoern Schiessle 12 years ago
parent a6cc810349
commit 07d43df713
  1. 2
      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`)'

Loading…
Cancel
Save