only add a new row if it isn't a unique share, otherwise update the existing row
This commit is contained in:
parent
a6cc810349
commit
07d43df713
|
@ -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…
Reference in New Issue