summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2015-10-23 13:57:09 +0200
committerRoeland Jago Douma <rullzer@owncloud.com>2016-01-08 20:27:01 +0100
commit629bac22fd724ac8bcde6401782d9d2517556137 (patch)
tree0441783995e7bdb567070541a00cfd3155ae87e7 /lib
parentc882d46e5f3ccdfb7beb062c219ba3f9a3a83b8f (diff)
downloadnextcloud-server-629bac22fd724ac8bcde6401782d9d2517556137.tar.gz
nextcloud-server-629bac22fd724ac8bcde6401782d9d2517556137.zip
Make sure to respect deleted group shares by user
Diffstat (limited to 'lib')
-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 = [];