summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2019-04-01 11:17:05 -0100
committerMaxence Lange <maxence@artificial-owl.com>2019-04-01 11:17:05 -0100
commit749fdab3b04323d06b649b6f4eb68910d6ccc01e (patch)
treef41613cac41598a5aea77c1e65c16f9270dee602 /apps
parent0166990f012dcd0d2d633aa4dd895c44e8e4b360 (diff)
downloadnextcloud-server-749fdab3b04323d06b649b6f4eb68910d6ccc01e.tar.gz
nextcloud-server-749fdab3b04323d06b649b6f4eb68910d6ccc01e.zip
do not returns shared_with === currentUser
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/lib/Controller/ShareAPIController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php
index 0f9996d2465..a6ad70a7f4b 100644
--- a/apps/files_sharing/lib/Controller/ShareAPIController.php
+++ b/apps/files_sharing/lib/Controller/ShareAPIController.php
@@ -644,7 +644,7 @@ class ShareAPIController extends OCSController {
$resharingRight = false;
$known = [];
foreach ($shares as $share) {
- if (in_array($share->getId(), $known)) {
+ if (in_array($share->getId(), $known) || $share->getSharedWith() === $this->currentUser) {
continue;
}