Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(files): hide move dialog action if destination has no CREATE permission #50177

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Antreesy
Copy link
Contributor

Summary

'MOVE' action requires both 'CREATE'+'DELETE' permission, therefore it should be hidden for non-writable directories. Currently action fails.

Before After
image image

Alternative: disable button (with the same logic)

Checklist

@Antreesy Antreesy added this to the Nextcloud 31 milestone Jan 14, 2025
@Antreesy Antreesy requested a review from susnux January 14, 2025 13:33
@Antreesy Antreesy self-assigned this Jan 14, 2025
@Antreesy Antreesy requested a review from skjnldsv as a code owner January 14, 2025 13:33
@Antreesy
Copy link
Contributor Author

/backport to stable30

@susnux
Copy link
Contributor

susnux commented Jan 14, 2025

Would it be possible to add a quick e2e test for this, so we do not run into regressions?

@skjnldsv skjnldsv mentioned this pull request Jan 14, 2025
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.

2 participants