Skip to content

fix: allow document creation only for users that can edit#4807

Merged
elzody merged 1 commit into
nextcloud:mainfrom
IONOS-Productivity:fix/shares-disable-doc-creation
Jun 12, 2025
Merged

fix: allow document creation only for users that can edit#4807
elzody merged 1 commit into
nextcloud:mainfrom
IONOS-Productivity:fix/shares-disable-doc-creation

Conversation

@tanyaka
Copy link
Copy Markdown

@tanyaka tanyaka commented May 26, 2025

Summary

This fix assures files creation from templates is not possible for users with read-only permissions.
Users with read-only permissions should not have option to create new document from diagram, document, presentation or spreadsheet template, see attached screenshot.

Checklist

  • Code is properly formatted
  • Sign-off message is added to all commits
  • Documentation (manuals or wiki) has been updated or is not required

@tanyaka
Copy link
Copy Markdown
Author

tanyaka commented May 26, 2025

add-new-files-with-doc-creation

@juliusknorr juliusknorr added bug Something isn't working 2. developing Work in progress labels May 26, 2025
@juliusknorr
Copy link
Copy Markdown
Member

/backport to stable31

@juliusknorr
Copy link
Copy Markdown
Member

/backport to stable30

@juliusknorr
Copy link
Copy Markdown
Member

/backport to stable29

@tanyaka tanyaka force-pushed the fix/shares-disable-doc-creation branch from b25f437 to 26b7741 Compare May 26, 2025 09:18
@tanyaka tanyaka marked this pull request as ready for review May 26, 2025 09:22
@elzody
Copy link
Copy Markdown
Collaborator

elzody commented May 28, 2025

I can't reproduce the issue here, can you quickly remind me what to do to reproduce this issue?

@tanyaka
Copy link
Copy Markdown
Author

tanyaka commented Jun 2, 2025

I can't reproduce the issue here, can you quickly remind me what to do to reproduce this issue?

We have found out this issue while working with collabora read-only. Here the user should not be able to edit the documents, but the current state is, that he can create and edit them.

@elzody
Copy link
Copy Markdown
Collaborator

elzody commented Jun 5, 2025

I was able to reproduce and see what you mean now. However, in order to get the tests passing, you will need to rebase onto the latest main branch of richdocuments.

@github-actions
Copy link
Copy Markdown
Contributor

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.)

Signed-off-by: Franziska Bath <franziska.bath@strato.de>
Co-authored-by: Misha M.-Kupriyanov <kupriyanov@strato.de>
@printminion-co printminion-co force-pushed the fix/shares-disable-doc-creation branch from 26b7741 to deab95d Compare June 10, 2025 07:45
@printminion-co
Copy link
Copy Markdown
Contributor

printminion-co commented Jun 10, 2025

@juliusknorr will it be merged into master?

@elzody elzody merged commit 8101c1a into nextcloud:main Jun 12, 2025
73 of 75 checks passed
@backportbot
Copy link
Copy Markdown

backportbot Bot commented Jun 12, 2025

The backport to stable29 failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout stable29
git pull origin stable29

# Create the new backport branch
git checkout -b backport/4807/stable29

# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick deab95d3

# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/4807/stable29

Error: Failed to check for changes with origin/stable29: No changes found in backport branch


Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

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

Labels

2. developing Work in progress bug Something isn't working feedback-requested

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants