Skip to content

Commit fb8682b

Browse files
committed
fixup! fix(ShareApiController): fix listing of remote shares for the owner
Signed-off-by: Simon L. <[email protected]>
1 parent 57967bb commit fb8682b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/files_sharing/lib/Controller/ShareAPIController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1729,8 +1729,8 @@ private function getShareById(string $id): IShare {
17291729
'deck' => IShare::TYPE_DECK,
17301730
];
17311731

1732-
// Include federated sharing whenever the provider is available for the user.
1733-
if ($this->shareManager->shareProviderExists(IShare::TYPE_REMOTE)) {
1732+
// Add federated sharing as a provider only if it's allowed
1733+
if ($this->shareManager->outgoingServer2ServerSharesAllowed()) {
17341734
$providers['ocFederatedSharing'] = null; // No type check needed
17351735
}
17361736

0 commit comments

Comments
 (0)