From 629bac22fd724ac8bcde6401782d9d2517556137 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Fri, 23 Oct 2015 13:57:09 +0200 Subject: Make sure to respect deleted group shares by user --- lib/private/share/share.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/private/share/share.php b/lib/private/share/share.php index e7f83909cb8..f02b2e9c770 100644 --- a/lib/private/share/share.php +++ b/lib/private/share/share.php @@ -1217,8 +1217,10 @@ class Share extends Constants { ->from('share') ->where($qb->expr()->eq('parent', $qb->createParameter('parent'))) ->andWhere($qb->expr()->eq('share_type', $qb->createParameter('share_type'))) + ->andWhere($qb->expr()->neq('permissions', $qb->createParameter('shareDeleted'))) ->setParameter(':parent', (int)$rootItem['id']) - ->setParameter(':share_type', 2); + ->setParameter(':share_type', 2) + ->setParameter(':shareDeleted', 0); $result = $qb->execute(); $ids = []; -- cgit v1.2.3