diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2015-10-23 13:57:09 +0200 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2016-01-08 20:27:01 +0100 |
commit | 629bac22fd724ac8bcde6401782d9d2517556137 (patch) | |
tree | 0441783995e7bdb567070541a00cfd3155ae87e7 /lib/private/share | |
parent | c882d46e5f3ccdfb7beb062c219ba3f9a3a83b8f (diff) | |
download | nextcloud-server-629bac22fd724ac8bcde6401782d9d2517556137.tar.gz nextcloud-server-629bac22fd724ac8bcde6401782d9d2517556137.zip |
Make sure to respect deleted group shares by user
Diffstat (limited to 'lib/private/share')
-rw-r--r-- | lib/private/share/share.php | 4 |
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 = []; |