summaryrefslogtreecommitdiffstats
path: root/lib/private/share
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/share')
-rw-r--r--lib/private/share/share.php4
1 files changed, 3 insertions, 1 deletions
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 = [];