Skip to content

Conversation

@fauzanfebrian
Copy link

@fauzanfebrian fauzanfebrian commented Oct 24, 2025

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

  • Resolves: #

Summary

TODO

  • ...

Checklist

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: nextcloud#54970

Signed-off-by: Fauzan <[email protected]>
@fauzanfebrian fauzanfebrian requested review from a team and skjnldsv as code owners October 24, 2025 16:46
@fauzanfebrian fauzanfebrian requested review from artonge and szaimen and removed request for a team October 24, 2025 16:46
@fauzanfebrian
Copy link
Author

Before
image

After
image

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: "Open locally" shown for file in share without "download and sync" permission

1 participant