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

[stable26] fix(files_sharing): Respect permissions passed when creating link shares #50598

Merged
merged 4 commits into from
Feb 4, 2025

Conversation

backportbot[bot]
Copy link

@backportbot backportbot bot commented Jan 31, 2025

Backport of #50270

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Amend HEAD commit to remove the line stating to skip CI

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

susnux and others added 3 commits January 31, 2025 22:18
Given:
User creates a link or email share with permissions=4 (create only = file drop).

Problem:
Currently the permissions are automatically extended to permissions = 5
(READ + CREATE). Work around was to create the share and directly update
it.

Solution:
Respect what the user is requesting, create a file drop share.

Co-authored-by: Ferdinand Thiessen <[email protected]>
Co-authored-by: Côme Chilliet <[email protected]>
Signed-off-by: Ferdinand Thiessen <[email protected]>
@susnux susnux force-pushed the backport/50270/stable26 branch from 3a6b044 to 68c8c38 Compare January 31, 2025 21:18
@susnux susnux marked this pull request as ready for review January 31, 2025 21:18
@susnux
Copy link
Contributor

susnux commented Jan 31, 2025

Cypress unrelated due to EOL branch

@AndyScherzinger AndyScherzinger merged commit c722f97 into stable26 Feb 4, 2025
39 of 41 checks passed
@AndyScherzinger AndyScherzinger deleted the backport/50270/stable26 branch February 4, 2025 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants