diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-12-04 22:50:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-04 22:50:34 +0100 |
commit | 922fd4dd78a5c4bedb0ec764978611f52402770b (patch) | |
tree | 6317a31939ef837cc1e1409d74f94114c6c0f986 /lib | |
parent | d8314b102ef93aa0a5bda1d3c4fe4de0b5a01be8 (diff) | |
parent | 977e3959eb4bdc89c4057e90e42ffa33a000a9f4 (diff) | |
download | nextcloud-server-922fd4dd78a5c4bedb0ec764978611f52402770b.tar.gz nextcloud-server-922fd4dd78a5c4bedb0ec764978611f52402770b.zip |
Merge pull request #12831 from nextcloud/fix/do_not_update_all_child_shares
Do not update child all child shares on group share update
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Share20/DefaultShareProvider.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/Share20/DefaultShareProvider.php b/lib/private/Share20/DefaultShareProvider.php index a2388012fe7..59aefd54cde 100644 --- a/lib/private/Share20/DefaultShareProvider.php +++ b/lib/private/Share20/DefaultShareProvider.php @@ -272,6 +272,7 @@ class DefaultShareProvider implements IShareProvider { $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())) |