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

@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

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 force-pushed the fix/hide-open-locally-action branch from 504c606 to 35b709b Compare October 28, 2025 07:18
@skjnldsv
Copy link
Member

/backport to stable32

@skjnldsv
Copy link
Member

/backport to stable31 please

@skjnldsv skjnldsv self-assigned this Oct 28, 2025
@skjnldsv skjnldsv added this to the Nextcloud 33 milestone Oct 28, 2025
Copy link
Contributor

@szaimen szaimen left a comment

Choose a reason for hiding this comment

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

🐘

@skjnldsv
Copy link
Member

Manual push for tests: #56060

@github-actions
Copy link
Contributor

github-actions bot commented Nov 8, 2025

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

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.

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

3 participants