diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-09-18 16:46:11 +0400 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-10-01 17:13:47 +0400 |
commit | 7edf912ef8a342c62d2e82e9cdc713ec14ba6f18 (patch) | |
tree | 55bd51a1f953664e7e79589634741b43b788e44f /lib/private/share | |
parent | aab44694ad284e81b949a896e129d0488569d779 (diff) |
only add a new row if it isn't a unique share, otherwise update the existing row
Diffstat (limited to 'lib/private/share')
-rw-r--r-- | lib/private/share/share.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/share/share.php b/lib/private/share/share.php index c16ef5af74d..6cfa7a78ff0 100644 --- a/lib/private/share/share.php +++ b/lib/private/share/share.php @@ -771,7 +771,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`)' |