Skip to content

Commit 9ee1b57

Browse files
authored
fixup! fix(ShareApiController): fix listing of remote shares for the owner
Signed-off-by: Simon L. <szaimen@e.mail.de>
1 parent 57967bb commit 9ee1b57

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

apps/files_sharing/lib/Controller/ShareAPIController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1730,7 +1730,8 @@ private function getShareById(string $id): IShare {
17301730
];
17311731

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

0 commit comments

Comments
 (0)