diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-12-04 20:55:14 +0100 |
---|---|---|
committer | Backportbot <backportbot-noreply@rullzer.com> | 2018-12-04 21:51:20 +0000 |
commit | 7bb79dc73371f51959b097fb069b9cfda95fbd99 (patch) | |
tree | 5655c7ec90f9fe0a04eacd875f34ac13ca015c1f | |
parent | ce5a6fb41b732d2a7c176c404ac86a26b5aa2bf3 (diff) | |
download | nextcloud-server-7bb79dc73371f51959b097fb069b9cfda95fbd99.tar.gz nextcloud-server-7bb79dc73371f51959b097fb069b9cfda95fbd99.zip |
Do not update child all child shares on group share update
Else we overwrite the whole share for link shares. Basically breaking
them.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
-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())) |