Getting the shares of a file no longer returns shares with the current
user for consistency with the results when getting the shares including
subfiles.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
$resharingRight = false;
foreach ($shares as $share) {
/** @var IShare $share */
+ if ($share->getSharedWith() === $this->currentUser) {
+ continue;
+ }
+
try {
$format = $this->formatShare($share, $path);
$formatted[] = $format;
],
[
$file1UserShareOwnerExpected,
- $file1UserShareRecipientExpected,
]
],
[
],
[
$file1UserShareOwnerExpected,
- $file1UserShareRecipientExpected,
$file1UserShareInitiatorExpected,
$file1UserShareOtherExpected,
]