Skip to content

fix: allow moving from of non-resharable to other share if the user has delete permissions - #57284

Merged
icewind1991 merged 2 commits into
masterfrom
allow-cross-share-move-delete
Jan 6, 2026
Merged

fix: allow moving from of non-resharable to other share if the user has delete permissions#57284
icewind1991 merged 2 commits into
masterfrom
allow-cross-share-move-delete

Conversation

@icewind1991

Copy link
Copy Markdown
Member

This adds another carve-out for the check added in #54801

Moving from a share with "read+delete" permissions to another share is blocked since #54801 since the recipient doesn't have share permissions.

However, it's possible for the recipient to move the file out of the share (since they have delete permissions) and then move it into a share afterwards.

Since the 2-step process is allowed, it makes sense to allow the user doing both steps in one step.

@icewind1991icewind1991 added this to the Nextcloud 33 milestone Dec 29, 2025
@icewind1991
icewind1991 requested a review from a team as a code ownerDecember 29, 2025 16:04
@icewind1991icewind1991 added the 3. to review Waiting for reviews label Dec 29, 2025
@icewind1991
icewind1991 requested review from leftybournes, salmart-dev and yemkareems and removed request for a teamDecember 29, 2025 16:04
…as delete permissions
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
@icewind1991
icewind1991force-pushed the allow-cross-share-move-delete branch from 6ea6558 to 8cfb490CompareDecember 29, 2025 16:39
@icewind1991
icewind1991 merged commit 72632fa into masterJan 6, 2026
207 of 211 checks passed
@icewind1991
icewind1991 deleted the allow-cross-share-move-delete branch January 6, 2026 13:23
@icewind1991

Copy link
Copy Markdown
MemberAuthor

/backport to stable32

@icewind1991

Copy link
Copy Markdown
MemberAuthor

/backport to stable31

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

Labels

3. to reviewWaiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@icewind1991@susnux@CarlSchwan