Skip to content

fix(sharing): hide external sharing section when link sharing disabled - #57630

Open
nfebe wants to merge 2 commits into
masterfrom
fix/hide-external-sharing-when-links-disabled
Open

fix(sharing): hide external sharing section when link sharing disabled#57630
nfebe wants to merge 2 commits into
masterfrom
fix/hide-external-sharing-when-links-disabled

Conversation

@nfebe

@nfebe nfebe commented Jan 18, 2026

Copy link
Copy Markdown
Contributor

Only show the external sharing section when link sharing is enabled or when federation is enabled and not configured to show as internal. When external sharing is hidden, simplify the section label from "Internal shares" to "Shares".

@nfebe
nfebe requested review from a team as code owners January 18, 2026 17:16
@nfebe
nfebe requested review from Altahrim, come-nc and szaimen and removed request for a team January 18, 2026 17:16
@nfebe

nfebe commented Jan 18, 2026

Copy link
Copy Markdown
Contributor Author

/backport to stable32

@nfebe

nfebe commented Jan 18, 2026

Copy link
Copy Markdown
Contributor Author

/backport to stable31

@nfebe nfebe added 3. to review Waiting for reviews feature: sharing labels Jan 18, 2026
|| $appConfig->getValueBool('files_sharing', ConfigLexicon::SHOW_FEDERATED_AS_INTERNAL);
$showExternalSharing = $appConfig->getValueBool('files_sharing', 'outgoing_server2server_share_enabled', true)
|| $appConfig->getValueBool('core', 'shareapi_allow_links', true);
$showExternalSharing = $appConfig->getValueBool('core', 'shareapi_allow_links', true)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this also include mail shares?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Mail shares are link shares under the hood

@nfebe
nfebe force-pushed the fix/hide-external-sharing-when-links-disabled branch 2 times, most recently from 8604fdb to 08f2c69 Compare January 27, 2026 09:53
@AndyScherzinger

Copy link
Copy Markdown
Member

/backport to stable33

Only show the external sharing section when link sharing is enabled or
when federation is enabled and not configured to show as internal.
When external sharing is hidden, simplify the section label from
"Internal shares" to "Shares".

Signed-off-by: nfebe <fenn25.fn@gmail.com>
@nfebe
nfebe force-pushed the fix/hide-external-sharing-when-links-disabled branch from 08f2c69 to b034fd3 Compare January 30, 2026 00:44
@nfebe

nfebe commented Jan 30, 2026

Copy link
Copy Markdown
Contributor Author

/compile

Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@susnux susnux added this to the Nextcloud 35 milestone Jun 9, 2026
@nextcloud-bot nextcloud-bot mentioned this pull request Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants