From 749fdab3b04323d06b649b6f4eb68910d6ccc01e Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Mon, 1 Apr 2019 11:17:05 -0100 Subject: do not returns shared_with === currentUser Signed-off-by: Maxence Lange --- apps/files_sharing/lib/Controller/ShareAPIController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps') 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; } -- cgit v1.2.3