Skip to content

fix(sharing): full share modal for a recipient with write access - #3144

Open
JF-Cozy wants to merge 2 commits into
masterfrom
fix/share-modal-subfolder-editor-permission
Open

JF-Cozy wants to merge 2 commits into
masterfrom
fix/share-modal-subfolder-editor-permission

Conversation

@JF-Cozy

@JF-Cozy JF-Cozy commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • ShareModal.jsx: the modal-mode gate now checks hasWriteAccess instead of canReshare, so a recipient with editor rights lands on the editable modal instead of the restricted SharingDetailsModal.
  • FederatedFolderModal.jsx: isMemberReadOnly now also checks hasWriteAccess, so nesting alone no longer hides the contact input and Done button for a recipient who has write access on the drive.

Fixes linagora/twake-drive#4198.

The modal-mode gate required canReshare (open_sharing flag) instead
of checking actual write access, so a recipient with editor rights
who shared a sub-folder they created still fell into the restricted
SharingDetailsModal, which has no recipient list, link banner or
Done button for non-drive documents.
FederatedFolderModal treated every non-root document inside a shared
drive as read-only regardless of the current member's actual role,
hiding the contact input and Done button even for an Editor sharing
a folder they created themselves.
@coderabbitai

coderabbitai Bot commented Sep 17, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: ca06e1d2-4854-4128-b73d-97b898af17c7


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

broken share window -> Shared folder / recipient side

2 participants