Skip to content

fix(core): include role in group permission equality check - #124

Merged
cuibonobo merged 2 commits into
mainfrom
claude/issue-107-plan-dxe5z3
Aug 6, 2026
Merged

fix(core): include role in group permission equality check#124
cuibonobo merged 2 commits into
mainfrom
claude/issue-107-plan-dxe5z3

Conversation

@cuibonobo

Copy link
Copy Markdown
Member

Summary

Test plan

  • New regression test: adding role: 'admin' to an existing group entry persists and bumps version.
  • New regression test: removing role (widening admins-only → any-member) persists and bumps version.
  • New regression test: a genuinely-identical group entry (matching role) still correctly no-ops (no spurious version bump).
  • pnpm test, pnpm typecheck, pnpm lint all pass in packages/core.

Fixes #107


Generated by Claude Code

claude added 2 commits August 6, 2026 10:56
permissionEqual() compared groupId/read/write for group-access
permission entries but not role, so setPermissions() judged a
role-only tightening (or widening) as a no-op deep-equal set and
silently skipped the write. Add role to the comparison and cover
the fix with regression tests.

Fixes #107
@cuibonobo
cuibonobo merged commit 47ed896 into main Aug 6, 2026
5 checks passed
@cuibonobo
cuibonobo deleted the claude/issue-107-plan-dxe5z3 branch August 6, 2026 11:01
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.

permissionEqual() ignores role — role-only ACL tightenings silently no-op

2 participants