Skip to content

Commit

Permalink
Merge pull request #12833 from nextcloud/backport/12831/stable15
Browse files Browse the repository at this point in the history
[stable15] Do not update child all child shares on group share update
  • Loading branch information
MorrisJobke authored Dec 5, 2018
2 parents 328f93f + 7bb79dc commit 3fd14b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/private/Share20/DefaultShareProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ public function update(\OCP\Share\IShare $share) {
$qb = $this->dbConn->getQueryBuilder();
$qb->update('share')
->where($qb->expr()->eq('parent', $qb->createNamedParameter($share->getId())))
->andWhere($qb->expr()->eq('share_type', $qb->createNamedParameter(self::SHARE_TYPE_USERGROUP)))
->set('uid_owner', $qb->createNamedParameter($share->getShareOwner()))
->set('uid_initiator', $qb->createNamedParameter($share->getSharedBy()))
->set('item_source', $qb->createNamedParameter($share->getNode()->getId()))
Expand Down

0 comments on commit 3fd14b2

Please sign in to comment.