do not returns shared_with === currentUser

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
This commit is contained in:
Maxence Lange 2019-04-01 11:17:05 -01:00
parent 0166990f01
commit 749fdab3b0
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}