summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-12-04 20:55:14 +0100
committerBackportbot <backportbot-noreply@rullzer.com>2018-12-04 21:53:38 +0000
commitb9b58b1acee7df631515584e33cd029c1a7e6257 (patch)
tree74bd4c00def0dc4718d1344b8195c016b2897420
parentd8f2e22e6b7c7164f65128a6fcdb34b11a1ea58c (diff)
downloadnextcloud-server-b9b58b1acee7df631515584e33cd029c1a7e6257.tar.gz
nextcloud-server-b9b58b1acee7df631515584e33cd029c1a7e6257.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.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/Share20/DefaultShareProvider.php b/lib/private/Share20/DefaultShareProvider.php
index b9ab7a46873..262d0029cf5 100644
--- a/lib/private/Share20/DefaultShareProvider.php
+++ b/lib/private/Share20/DefaultShareProvider.php
@@ -230,6 +230,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()))