summaryrefslogtreecommitdiffstats
path: root/apps/sharebymail
diff options
context:
space:
mode:
authorRichard Steinmetz <richard@steinmetz.cloud>2022-06-03 15:27:11 +0200
committerRichard Steinmetz <richard@steinmetz.cloud>2022-06-21 14:19:45 +0200
commit8e5f38150863c0636aaabe933aaa8898e50c543f (patch)
tree452ecf973e038debdc08e7bc678e16ad5ec0fdb1 /apps/sharebymail
parent9b9a4f2a67bd26bb93ff1041801e60951d06b191 (diff)
downloadnextcloud-server-8e5f38150863c0636aaabe933aaa8898e50c543f.tar.gz
nextcloud-server-8e5f38150863c0636aaabe933aaa8898e50c543f.zip
Fix email shares not being shown to other users
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
Diffstat (limited to 'apps/sharebymail')
-rw-r--r--apps/sharebymail/lib/ShareByMailProvider.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/sharebymail/lib/ShareByMailProvider.php b/apps/sharebymail/lib/ShareByMailProvider.php
index ccfebe0bded..ee14e354c52 100644
--- a/apps/sharebymail/lib/ShareByMailProvider.php
+++ b/apps/sharebymail/lib/ShareByMailProvider.php
@@ -855,7 +855,7 @@ class ShareByMailProvider implements IShareProvider {
$or1
)
);
- } else {
+ } elseif ($node === null) {
$qb->andWhere(
$qb->expr()->orX(
$qb->expr()->eq('uid_owner', $qb->createNamedParameter($userId)),