diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2018-11-04 21:08:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-04 21:08:11 +0100 |
commit | 72b7c9ffa00553f3c1439e824e439da8412ebfe9 (patch) | |
tree | 4ae3f715abc330c4467bee499df97dce0106bc7b /lib/private/Share20/DefaultShareProvider.php | |
parent | 4ebb2090db6962846ae22aa3974714620cbe323e (diff) | |
parent | 77b95ccd12bb946cba96486d859b8241649868ca (diff) | |
download | nextcloud-server-72b7c9ffa00553f3c1439e824e439da8412ebfe9.tar.gz nextcloud-server-72b7c9ffa00553f3c1439e824e439da8412ebfe9.zip |
Merge pull request #12105 from nextcloud/using-resharing-right-to-display-shares
Shares are displayed to users with resharing rights
Diffstat (limited to 'lib/private/Share20/DefaultShareProvider.php')
-rw-r--r-- | lib/private/Share20/DefaultShareProvider.php | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/private/Share20/DefaultShareProvider.php b/lib/private/Share20/DefaultShareProvider.php index 589b64fc58a..a2388012fe7 100644 --- a/lib/private/Share20/DefaultShareProvider.php +++ b/lib/private/Share20/DefaultShareProvider.php @@ -623,12 +623,14 @@ class DefaultShareProvider implements IShareProvider { if ($reshares === false) { $qb->andWhere($qb->expr()->eq('uid_initiator', $qb->createNamedParameter($userId))); } else { - $qb->andWhere( - $qb->expr()->orX( - $qb->expr()->eq('uid_owner', $qb->createNamedParameter($userId)), - $qb->expr()->eq('uid_initiator', $qb->createNamedParameter($userId)) - ) - ); + if ($node === null) { + $qb->andWhere( + $qb->expr()->orX( + $qb->expr()->eq('uid_owner', $qb->createNamedParameter($userId)), + $qb->expr()->eq('uid_initiator', $qb->createNamedParameter($userId)) + ) + ); + } } if ($node !== null) { |