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

feat: check writer permission before merging #303

Merged
merged 16 commits into from
Jan 5, 2025

Conversation

trungnotchung
Copy link
Contributor

@trungnotchung trungnotchung commented Dec 30, 2024

Implemented a writer permission check before merging vertices.

  • If ACL exists, verify permissions using drp.acl.isWriter(peerId).
  • If there is no ACL, proceed with blind merging.

Update AddWinsSetWithACL because there is no need to check writer permission in the ACL. Updated tests to validate both scenarios. Resolve #302

@trungnotchung trungnotchung marked this pull request as draft December 30, 2024 04:52
@trungnotchung trungnotchung force-pushed the feat/check-writer-permisson branch from ff4711a to adfb540 Compare January 3, 2025 03:29
@trungnotchung trungnotchung marked this pull request as ready for review January 3, 2025 04:23
Copy link
Contributor

@anhnd350309 anhnd350309 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Contributor

@JanLewDev JanLewDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

packages/object/src/index.ts Outdated Show resolved Hide resolved
packages/object/src/index.ts Outdated Show resolved Hide resolved
@trungnotchung trungnotchung force-pushed the feat/check-writer-permisson branch from f95c7f7 to b33bca9 Compare January 5, 2025 15:54
@d-roak d-roak merged commit 155f976 into main Jan 5, 2025
12 checks passed
@trungnotchung trungnotchung deleted the feat/check-writer-permisson branch January 6, 2025 07:35
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.

Check writer permission before merging
5 participants