diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2019-04-01 11:17:05 -0100 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2019-04-01 11:17:05 -0100 |
commit | 749fdab3b04323d06b649b6f4eb68910d6ccc01e (patch) | |
tree | f41613cac41598a5aea77c1e65c16f9270dee602 /apps | |
parent | 0166990f012dcd0d2d633aa4dd895c44e8e4b360 (diff) | |
download | nextcloud-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.php | 2 |
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; } |