Skip to content

fix(files_sharing): Hide 'Open locally' action - #56060

Merged
skjnldsv merged 3 commits into
masterfrom
fix/hide-open-locally-action
Nov 28, 2025
Merged

fix(files_sharing): Hide 'Open locally' action#56060
skjnldsv merged 3 commits into
masterfrom
fix/hide-open-locally-action

Conversation

@skjnldsv

@skjnldsvskjnldsv commented Oct 28, 2025

Copy link
Copy Markdown
Member

Manual push of #55992 from community

Closes#55992

@skjnldsvskjnldsv self-assigned this Oct 28, 2025
@skjnldsv
skjnldsv requested a review from a team as a code ownerOctober 28, 2025 15:56
@skjnldsvskjnldsv added the 4. to release Ready to be released and/or waiting for tests to finish label Oct 28, 2025
@skjnldsv
skjnldsv requested review from artonge, sorbaugh and szaimen and removed request for a teamOctober 28, 2025 15:56
@skjnldsv

Copy link
Copy Markdown
MemberAuthor

/compile

@skjnldsv
skjnldsvforce-pushed the fix/hide-open-locally-action branch from 35b709b to 096047aCompareOctober 28, 2025 15:56

@szaimenszaimen left a comment

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.

🐘

Comment threadapps/files/src/utils/permissions.ts Outdated
Comment threadapps/files/src/utils/permissions.ts Outdated
This patch ensures that the "Open locally" context menu item is not
displayed for files in a share where the "download and sync" permission
has not been granted.
This prevents user confusion, as the action would fail anyway. The fix
adds a permission check before rendering the menu item, and adds a
corresponding unit test to verify this behavior.
Resolves: #54970
Signed-off-by: Fauzan <fauzanfebriann@gmail.com>
@skjnldsv
skjnldsvforce-pushed the fix/hide-open-locally-action branch from 3acce44 to a7509aeCompareNovember 28, 2025 07:55
Comment threadapps/files/src/utils/permissions.ts Outdated
@skjnldsv

This comment was marked as resolved.

@skjnldsv
skjnldsvforce-pushed the fix/hide-open-locally-action branch from 3637d8e to 0a4886eCompareNovember 28, 2025 08:06
skjnldsvand others added 2 commits November 28, 2025 09:17
Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
@skjnldsv
skjnldsvforce-pushed the fix/hide-open-locally-action branch from 0a4886e to 478509aCompareNovember 28, 2025 08:17
@skjnldsv
skjnldsv merged commit bb1451f into masterNov 28, 2025
130 of 136 checks passed
@skjnldsv
skjnldsv deleted the fix/hide-open-locally-action branch November 28, 2025 08:51
@skjnldsv

Copy link
Copy Markdown
MemberAuthor

/backport a7509ae7bbc428 to stable32

@skjnldsv

Copy link
Copy Markdown
MemberAuthor

/backport a7509ae7bbc428 to stable31

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to releaseReady to be released and/or waiting for tests to finishbug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@skjnldsv@susnux@szaimen@fauzanfebrian