do not returns shared_with === currentUser
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
This commit is contained in:
parent
0166990f01
commit
749fdab3b0
|
@ -644,7 +644,7 @@ class ShareAPIController extends OCSController {
|
||||||
$resharingRight = false;
|
$resharingRight = false;
|
||||||
$known = [];
|
$known = [];
|
||||||
foreach ($shares as $share) {
|
foreach ($shares as $share) {
|
||||||
if (in_array($share->getId(), $known)) {
|
if (in_array($share->getId(), $known) || $share->getSharedWith() === $this->currentUser) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue