Skip to content

fix(files_sharing): Hide link shares for users in excluded groups - #53466

Merged
nfebe merged 2 commits into
masterfrom
feature/hide-external-shares-excluded-groups
Jun 17, 2025
Merged

fix(files_sharing): Hide link shares for users in excluded groups#53466
nfebe merged 2 commits into
masterfrom
feature/hide-external-shares-excluded-groups

Conversation

@nfebe

@nfebenfebe commented Jun 13, 2025

Copy link
Copy Markdown
Contributor

Excluded groups should not see the create link share option in UI?

Before (link share prevented for user)After (link share prevented for user)
allow-link-sharesprevent-link-shares

@nfebe
nfebeforce-pushed the feature/hide-external-shares-excluded-groups branch 2 times, most recently from 137152b to 1e8112cCompareJune 17, 2025 09:06
@nfebe

Copy link
Copy Markdown
ContributorAuthor

Should this apply to emails as well?

@marcoambrosini@artonge

@nfebe
nfebe marked this pull request as ready for review June 17, 2025 09:07
@nfebe
nfebe requested review from a team as code ownersJune 17, 2025 09:07
@nfebe
nfebe requested review from artonge, marcoambrosini, skjnldsv, sorbaugh and susnux and removed request for a team, artonge and skjnldsvJune 17, 2025 09:07
@nfebe
nfebeforce-pushed the feature/hide-external-shares-excluded-groups branch 2 times, most recently from cccdaf9 to 37b7486CompareJune 17, 2025 09:10
@AndyScherzingerAndyScherzinger added design Design, UI, UX, etc. 3. to review Waiting for reviews labels Jun 17, 2025
@nfebe
nfebeforce-pushed the feature/hide-external-shares-excluded-groups branch from b4e9c0e to 23e44f1CompareJune 17, 2025 09:25

@jancborchardtjancborchardt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@nfebe since the setting is called "Allow users to share via link and emails", exclusion should apply to both link and email. :)

@nfebe
nfebeforce-pushed the feature/hide-external-shares-excluded-groups branch from 23e44f1 to 595df96CompareJune 17, 2025 13:30

@nfebenfebe left a comment

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Prevents both emails and link shares now.

},

externalShareInputPlaceholder() {
if (!this.isLinkSharingAllowed) {

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

This was already handled in the SharingInput and now the text updated to match so all good now.

- Added frontend check to hide link shares if, public sharing is disabled.
Signed-off-by: nfebe <fenn25.fn@gmail.com>
@nfebe
nfebeforce-pushed the feature/hide-external-shares-excluded-groups branch from 595df96 to 57f3edcCompareJune 17, 2025 13:33
@nfebe
nfebe enabled auto-merge June 17, 2025 13:33
@nfebe

Copy link
Copy Markdown
ContributorAuthor

/compile

@nfebe

Copy link
Copy Markdown
ContributorAuthor

/backport to stable31

@nfebe

Copy link
Copy Markdown
ContributorAuthor

/backport to stable30

@nfebenfebe changed the title feat(files_sharing): Hide link shares for users in excluded groupsfix(files_sharing): Hide link shares for users in excluded groupsJun 17, 2025
@nextcloud-command
nextcloud-command requested a review from a team as a code ownerJune 17, 2025 13:37
@nfebe
nfebeforce-pushed the feature/hide-external-shares-excluded-groups branch 3 times, most recently from 7a9a58e to edb7fecCompareJune 17, 2025 17:35
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@nfebe
nfebeforce-pushed the feature/hide-external-shares-excluded-groups branch from edb7fec to 9583a67CompareJune 17, 2025 18:30
@nfebe
nfebe merged commit 768898e into masterJun 17, 2025
@nfebe
nfebe deleted the feature/hide-external-shares-excluded-groups branch June 17, 2025 18:45
@skjnldsvskjnldsv mentioned this pull request Aug 19, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviewsdesignDesign, UI, UX, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@nfebe@jancborchardt@AndyScherzinger@marcoambrosini@nextcloud-command